[SCM] live-build branch, debian-next, updated. debian/3.0_a15-1-3-gf437063

Daniel Baumann daniel at debian.org
Sat Apr 23 15:45:36 UTC 2011


The following commit has been merged in the debian-next branch:
commit f4370639f9a8caab6974412ac9e5981158e518c4
Author: Daniel Baumann <daniel at debian.org>
Date:   Sat Apr 23 17:44:01 2011 +0200

    Making apt calls a bit more consistent over the different scripts.

diff --git a/scripts/build/lb_chroot_apt b/scripts/build/lb_chroot_apt
index edfc033..aa1db74 100755
--- a/scripts/build/lb_chroot_apt
+++ b/scripts/build/lb_chroot_apt
@@ -139,7 +139,7 @@ case "${1}" in
 		# them again.
 		rm -f chroot/var/cache/apt/* > /dev/null 2>&1 || true
 		rm -f chroot/var/lib/apt/lists/* > /dev/null 2>&1 || true
-		Chroot chroot "apt-get ${APT_OPTIONS} update"
+		Apt chroot update
 
 		# Creating stage file
 		Create_stagefile .stage/chroot_apt
diff --git a/scripts/build/lb_chroot_sources b/scripts/build/lb_chroot_sources
index 771c077..a4b3dcd 100755
--- a/scripts/build/lb_chroot_sources
+++ b/scripts/build/lb_chroot_sources
@@ -287,7 +287,7 @@ EOF
 				# completed all the indices.
 				case "${LB_PACKAGE_LISTS}" in
 					stripped|minimal)
-						Chroot chroot "apt-get update"
+						Apt chroot update
 						;;
 				esac
 
@@ -435,6 +435,7 @@ EOF
 
 			if [ "${LB_APT}" = "aptitude" ] && [ ! -x /usr/bin/aptitude ]
 			then
+				Chroot chroot "apt-get ${APT_OPTIONS} update"
 				Chroot chroot "apt-get ${APT_OPTIONS} install aptitude"
 			fi
 		else # Get fresh indices
@@ -480,7 +481,7 @@ EOF
 			# Installing keyring packages
 			if [ -n "${LB_KEYRING_PACKAGES}" ]
 			then
-				Chroot chroot "apt-get --yes --force-yes install ${LB_KEYRING_PACKAGES}"
+				Apt chroot "--force-yes install ${LB_KEYRING_PACKAGES}"
 				Apt chroot update
 			fi
 

-- 
live-build



More information about the debian-live-changes mailing list