Removing unecessary removal of apt preferences.
authorDaniel Baumann <daniel@debian.org>
Thu, 25 Oct 2012 12:00:33 +0000 (14:00 +0200)
committerDaniel Baumann <daniel@debian.org>
Thu, 25 Oct 2012 12:00:36 +0000 (14:00 +0200)
When we rebuild an image with changed local archives,
we would preferably remove the already existing preferences files.
However, there's no way to make sure that we remove enough or too
much, hence we don't remove any at all and stay with the dogma:

  "If you change something in the config tree affecting $stage,
   you need to rebuild that stage from scratch."

So for pinning changes for local archives, this means, since it's
affecting the chroot stage, we'll have to rebuild the chroot stage:

  "lb clean --chroot && lb chroot"

scripts/build/chroot_archives

index 502ff44..79b4b39 100755 (executable)
@@ -189,9 +189,6 @@ EOF
                        fi
                fi
 
-               # probably too bold, needs refinment (FIXME)
-               rm -f chroot/etc/apt/preferences.d/*
-
                # Configure third-party archives
                if [ -n "${LB_ARCHIVES}" ]
                then