Correcting copying of archive specific apt preferences files, thanks to Thanatermesis...
authorDaniel Baumann <daniel@debian.org>
Wed, 14 Nov 2012 20:54:42 +0000 (21:54 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 14 Nov 2012 20:54:42 +0000 (21:54 +0100)
scripts/build/chroot_archives

index 79b4b39..3785b65 100755 (executable)
@@ -290,7 +290,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
@@ -847,7 +847,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