Browse Source

* vbuilder:Retry_vbootstrap-post(): pass --justdb option to rpm so that apt-get don't have to actually install packages again (this will help avoid creating annoying .rpmorig/.rpmnew files)
- Retry_vbootstrap-post 内でパッケージを再インストールする際、rpm に --justdb オプションを渡すことにより、ファイルシステムはそのままで rpm db のみ更新するようにした (これにより不要な .rpmorig/.rpmnew が作られるのを防ぐことができる)



git-svn-id: http://trac.vinelinux.org/repos/projects/vbootstrap/trunk@518 ec354946-7b23-47d6-9f5a-488ba84defc7

shaolin 14 years ago
parent
commit
4e89ecf23f
2 changed files with 7 additions and 2 deletions
  1. 6 1
      vbootstrap.spec
  2. 1 1
      vbuilder.sh.in

+ 6 - 1
vbootstrap.spec

@@ -1,7 +1,7 @@
 # This package is maintained on trac svn repository. Please do not change on local.
 # If you find a BUG, please report to Vine@vinelinux.org or mailing list or BTS.
 
-%define version 0.0.17
+%define version 0.0.18
 
 Summary: bootstrap scripts to create a basic Vine Linux system
 Summary(ja): Vine Linux の基本システムを作成するためのスクリプト
@@ -61,6 +61,11 @@ vbootstrap は Vine Linux の基本システムを既存の Vine Linux システ
 
 
 %changelog
+* Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.18-1
+- vbuilder:Retry_vbootstrap-post(): pass --justdb option to rpm
+  so that apt-get don't have to actually install packages again
+  (this will help avoid creating annoying .rpmorig/.rpmnew files)
+
 * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.17-1
 - add --help option to vbuilder
 - ensure all files/subdirectories under BUILT_RPMS_DIR

+ 1 - 1
vbuilder.sh.in

@@ -456,7 +456,7 @@ Retry_vbootstrap-post(){
 	$__chroot_sh "rm /var/lib/rpm/*"
 	$__chroot_sh "rpmdb --initdb"
 	$__chroot_sh "apt-get -qq update"
-	$__chroot_sh "apt-get -qq -y install ${BASE_PKGS}"
+	$__chroot_sh "apt-get -qq -y install ${BASE_PKGS} -o RPM::Options::=--justdb"
     fi
 }