summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-10-25 14:00:33 +0200
committerDaniel Baumann <daniel@debian.org>2012-10-25 14:00:36 +0200
commit9a33f681fa4fa7a7271ae244dd7812ff40d3e417 (patch)
treee51449ca927addfbf0fa018f09e96bb8e13b837b /scripts/build
parent2caef33ea285353fb74f88b611e90fcc2b8b7092 (diff)
downloadvyos-live-build-9a33f681fa4fa7a7271ae244dd7812ff40d3e417.tar.gz
vyos-live-build-9a33f681fa4fa7a7271ae244dd7812ff40d3e417.zip
Removing unecessary removal of apt preferences.
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"
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/chroot_archives3
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives
index 502ff449f..79b4b3964 100755
--- a/scripts/build/chroot_archives
+++ b/scripts/build/chroot_archives
@@ -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