From: Adam Conrad <adconrad@ubuntu.com>
Date: Wed, 25 May 2022 18:22:01 +0800
Subject: Fix copying apt preferences snippets into chroots

---
 scripts/build/lb_chroot_archives | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/build/lb_chroot_archives b/scripts/build/lb_chroot_archives
index 304480b..8a5941a 100755
--- a/scripts/build/lb_chroot_archives
+++ b/scripts/build/lb_chroot_archives
@@ -291,7 +291,7 @@ EOF
 			do
 				if [ -e "${FILE}" ]
 				then
-					cp config/archives/$(basename ${_FILE} .chroot) chroot/etc/apt/preferences.d
+					cp ${FILE} chroot/etc/apt/preferences.d/$(basename ${FILE} .chroot)
 				fi
 			done
 		fi
@@ -846,7 +846,7 @@ EOF
 			do
 				if [ -e "${FILE}" ]
 				then
-					cp config/archives/$(basename ${_FILE} .binary) chroot/etc/apt/preferences.d
+					cp ${FILE} chroot/etc/apt/preferences.d/$(basename ${FILE} .binary)
 				fi
 			done
 		fi
