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>
This commit is contained in:
Chris Lamb 2008-08-14 01:39:03 +01:00 committed by Daniel Baumann
parent bdd2f385c4
commit 266165bbe6
1 changed files with 5 additions and 5 deletions

View File

@ -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