diff options
author | Chris Lamb <chris@chris-lamb.co.uk> | 2008-08-14 01:39:03 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2008-08-14 05:44:23 +0200 |
commit | 266165bbe619bb971001ff942598f90ecc3daa4d (patch) | |
tree | 83e09d033729b8d26ea1f7eaddd38311dfc0330c | |
parent | bdd2f385c4dd3d4900dcb9373501a6454d66b02e (diff) | |
download | vyos-live-build-266165bbe619bb971001ff942598f90ecc3daa4d.tar.gz vyos-live-build-266165bbe619bb971001ff942598f90ecc3daa4d.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.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
-rwxr-xr-x | helpers/lh_chroot_sources | 10 |
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 |