From 3aa34e3461baa90ff4af76b1af36e8afda16d65e Mon Sep 17 00:00:00 2001
From: Chris Lamb <chris@chris-lamb.co.uk>
Date: Thu, 10 Jul 2008 21:54:02 +0100
Subject: Fix a bug where a /etc/apt/preferences supplied in
 chroot_local-includes was always being deleted when used in conjunction with
 config/chroot_apt/preferences.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
---
 helpers/lh_chroot_apt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'helpers')

diff --git a/helpers/lh_chroot_apt b/helpers/lh_chroot_apt
index 055814684..6bfb7c352 100755
--- a/helpers/lh_chroot_apt
+++ b/helpers/lh_chroot_apt
@@ -144,7 +144,7 @@ case "${1}" in
 		rm -f chroot/etc/apt/apt.conf.d/00secure
 
 		# Deconfiguring apt preferences
-		if [ -f config/chroot_apt/preferences.orig ]
+		if [ -f chroot/etc/apt/preferences.orig ]
 		then
 			mv chroot/etc/apt/preferences.orig chroot/etc/apt/preferences
 		else
-- 
cgit v1.2.3