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

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


The following commit has been merged in the master branch:
commit 52d8a7a6cb60482843163d5ab92339409beef1aa
Author: Chris Lamb <chris at chris-lamb.co.uk>
Date:   Thu Aug 14 01:38:24 2008 +0100

    Prevent (harmless) duplicate entries appearing in /etc/apt/preferences
    
    Signed-off-by: Chris Lamb <chris at chris-lamb.co.uk>

diff --git a/helpers/lh_chroot_apt b/helpers/lh_chroot_apt
index 8564bf4..766875f 100755
--- a/helpers/lh_chroot_apt
+++ b/helpers/lh_chroot_apt
@@ -114,6 +114,11 @@ case "${1}" in
 
 		if Find_files config/chroot_local-packages/*.deb
 		then
+			if [ ! -f config/chroot_apt/preferences ] && [ "${1}" = "install-binary" ]
+			then
+				rm -f chroot/etc/apt/preferences
+			fi
+
 			echo >> chroot/etc/apt/preferences
 			echo "Package: *" >> chroot/etc/apt/preferences
 			echo "Pin: release o=chroot_local-packages" >> chroot/etc/apt/preferences

-- 
debian-live



More information about the debian-live-changes mailing list