Browse Source

reduce the frequency of running apt-get-chroot

git-svn-id: http://trac.vinelinux.org/repos/projects/vbootstrap/trunk@6010 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 12 years ago
parent
commit
8586299877
1 changed files with 4 additions and 5 deletions
  1. 4 5
      vbuilder.sh.in

+ 4 - 5
vbuilder.sh.in

@@ -712,7 +712,7 @@ RPM_Remove(){
     mount-chroot /proc
     mount-chroot /dev/pts
     mount-chroot /dev/shm
-    apt-get-update --chroot
+    # apt-get-update --chroot
 
     [ -f $RPM_PKG ] && \
 	echo $"E: $RPM_PKG is not a package name" && return 1
@@ -723,7 +723,7 @@ RPM_Remove(){
     mount-chroot --umount /proc
     mount-chroot --umount archives_dir
     mount-chroot --umount unionfs_dir
-    apt-get-update --host
+    # apt-get-update --host
 
     return 0
 }
@@ -735,7 +735,6 @@ RPM_Install(){
     mount-chroot /proc
     mount-chroot /dev/pts
     mount-chroot /dev/shm
-
     apt-get-update --chroot
 
     [ $with_category_nonfree -eq 1 ] && \
@@ -878,7 +877,7 @@ Login_Chroot(){
     mount-chroot /dev/shm
     mount-chroot /tmp
     # mount-chroot /home
-    apt-get-update --chroot
+    # apt-get-update --chroot
 
     ## copy host's configurations of /etc
     #passwd shadow group gshadow
@@ -896,7 +895,7 @@ Login_Chroot(){
     mount-chroot --umount /proc
     mount-chroot --umount archives_dir
     mount-chroot --umount unionfs_dir
-    apt-get-update --host
+    # apt-get-update --host
 
     return 0
 }