[SCM] debian-live branch, master, updated. 1.0_a48-1-98-gea96223

Daniel Baumann daniel at debian.org
Sat Aug 23 22:49:24 UTC 2008


The following commit has been merged in the master branch:
commit 43c2d383244f0a1c202f47bf41de92de1a510289
Author: Chris Lamb <chris at chris-lamb.co.uk>
Date:   Sun Aug 10 07:03:27 2008 +0100

    Fix a bug in chroot_local-packages where packages were upgraded with themselves during lh_binary stages.
    
    Signed-off-by: Chris Lamb <chris at chris-lamb.co.uk>

diff --git a/helpers/lh_chroot_apt b/helpers/lh_chroot_apt
index 1f8741e..1e6ab56 100755
--- a/helpers/lh_chroot_apt
+++ b/helpers/lh_chroot_apt
@@ -112,6 +112,15 @@ case "${1}" in
 			cp config/chroot_apt/preferences chroot/etc/apt/preferences
 		fi
 
+		if Find_files config/chroot_local-packages/*.deb
+		then
+			# Ensure local packages have priority
+			echo >> chroot/etc/apt/preferences
+			echo "Package: *" >> chroot/etc/apt/preferences
+			echo "Pin: release o=chroot_local-packages" >> chroot/etc/apt/preferences
+			echo "Pin-Priority: 1001" >> chroot/etc/apt/preferences
+		fi
+
 		# Creating stage file
 		Create_stagefile .stage/chroot_apt
 		;;
@@ -151,6 +160,20 @@ case "${1}" in
 			rm -f chroot/etc/apt/preferences
 		fi
 
+		if Find_files config/chroot_local-packages/*.deb
+		then
+			# Ensure local packages are not re-installed during lh_binary
+			echo >> chroot/etc/apt/preferences
+			echo "Package: *" >> chroot/etc/apt/preferences
+			echo "Pin: release o=chroot_local-packages" >> chroot/etc/apt/preferences
+			echo "Pin-Priority: 99" >> chroot/etc/apt/preferences
+
+			echo >> chroot/etc/apt/preferences
+			echo "Package: *" >> chroot/etc/apt/preferences
+			echo "Pin: release o=debian" >> chroot/etc/apt/preferences
+			echo "Pin-Priority: 99" >> chroot/etc/apt/preferences
+		fi
+
 		# Removing stage file
 		rm -f .stage/chroot_apt
 		;;
@@ -159,13 +182,3 @@ case "${1}" in
 		Usage
 		;;
 esac
-
-if ls config/chroot_local-packages/*.deb > /dev/null 2>&1
-then
-	cat >>chroot/etc/apt/preferences <<EOF
-
-Package: *
-Pin: release o=chroot_local-packages
-Pin-Priority: 1001
-EOF
-fi

-- 
debian-live



More information about the debian-live-changes mailing list