Correcting a typo in chroot_apt when re-configuring apt preferences, found by Thanate...
authorDaniel Baumann <daniel@debian.org>
Mon, 19 Nov 2012 15:21:19 +0000 (16:21 +0100)
committerDaniel Baumann <daniel@debian.org>
Mon, 19 Nov 2012 15:21:19 +0000 (16:21 +0100)
scripts/build/chroot_apt

index b31ab94..3b12049 100755 (executable)
@@ -298,7 +298,7 @@ EOF
 
                                cp -aL ${_FILE} chroot/etc/apt/preferences.d
 
-                               if [ -f chroot/etc/apt/preferences.d/$(basename ${_FILE}) ]
+                               if [ -f chroot/etc/apt/preferences.d/$(basename ${_FILE}).orig ]
                                then
                                        mv chroot/etc/apt/preferences.d/$(basename ${_FILE}).orig chroot/etc/apt/preferences.d/$(basename ${_FILE})
                                fi