From 1010bcc390ca344239ce7aaedf6a84d0a03ad2f7 Mon Sep 17 00:00:00 2001
From: Chris Lamb <chris@chris-lamb.co.uk>
Date: Thu, 14 Aug 2008 01:39:03 +0100
Subject: 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.
---
helpers/lh_chroot_sources | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources
index 866be3e..681d721 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
--
cgit v1.0