summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_sources
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-08-14 01:39:03 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:39 +0100
commit1010bcc390ca344239ce7aaedf6a84d0a03ad2f7 (patch)
tree3146f9d2ae8872f71b2b7244e8c47cef4fd95ff1 /helpers/lh_chroot_sources
parent445de4d80aaa4050aabf1a518927ae7225760445 (diff)
downloadvyos-live-build-1010bcc390ca344239ce7aaedf6a84d0a03ad2f7.tar.gz
vyos-live-build-1010bcc390ca344239ce7aaedf6a84d0a03ad2f7.zip
Generate Release file for chroot_local-packages when APT_SECURE is disabled.
This was preventing the pinning mechanism to work when it security was disabled.
Diffstat (limited to 'helpers/lh_chroot_sources')
-rwxr-xr-xhelpers/lh_chroot_sources10
1 files changed, 5 insertions, 5 deletions
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources
index 866be3ef4..681d721fa 100755
--- a/helpers/lh_chroot_sources
+++ b/helpers/lh_chroot_sources
@@ -116,13 +116,13 @@ case "${1}" in
echo "cd /root/local-packages && apt-ftparchive packages . > Packages" | Chroot sh
gzip -9 -c chroot/root/local-packages/Packages > chroot/root/local-packages/Packages.gz
+ # Generate Release
+ echo "cd /root/local-packages && apt-ftparchive \
+ -o APT::FTPArchive::Release::Origin=chroot_local-packages \
+ release . > Release" | Chroot sh
+
if [ "${LH_APT_SECURE}" = "enabled" ]
then
- # Generate Release
- echo "cd /root/local-packages && apt-ftparchive \
- -o APT::FTPArchive::Release::Origin=chroot_local-packages \
- release . > Release" | Chroot sh
-
_LH_DOTGNUPG_EXISTED=0
if [ -d chroot/root/.gnupg ]
then