[SCM] debian-live/live-helper branch, master, updated. 1.0_a31-1-8-ge98b7dd
Daniel Baumann
daniel at debian.org
Sun Oct 14 19:48:14 UTC 2007
The branch, master has been updated
via e98b7dda9d10b9a76b677b066878fdcad37e5be7 (commit)
from c5f302869e7b2da4288afa767aaafb4e371ba7e8 (commit)
- Shortlog ------------------------------------------------------------
e98b7dd Adding support for a local /etc/apt/preferences file in config/chroot_apt/preferences.
Summary of changes:
helpers/lh_chroot_apt | 19 +++++++++++++++++++
helpers/lh_config | 1 +
2 files changed, 20 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
Details of changes:
commit e98b7dda9d10b9a76b677b066878fdcad37e5be7
Author: Daniel Baumann <daniel at debian.org>
Date: Sun Oct 14 21:47:35 2007 +0200
Adding support for a local /etc/apt/preferences file in config/chroot_apt/preferences.
diff --git a/helpers/lh_chroot_apt b/helpers/lh_chroot_apt
index 5ba5b00..ffba6d7 100755
--- a/helpers/lh_chroot_apt
+++ b/helpers/lh_chroot_apt
@@ -106,6 +106,17 @@ case "${1}" in
;;
esac
+ # Configuring apt preferences
+ if [ -f config/chroot_apt/preferences ]
+ then
+ if [ -f chroot/etc/apt/preferences ]
+ then
+ mv chroot/etc/apt/preferences chroot/etc/apt/prefereces.orig
+ fi
+
+ cp config/chroot_apt/preferences chroot/etc/apt/preferences
+ fi
+
# Creating stage file
Create_stagefile .stage/chroot_apt
;;
@@ -137,6 +148,14 @@ case "${1}" in
# Deconfiguring aptitude secure
rm -f chroot/etc/apt/apt.conf.d/00secure
+ # Deconfiguring apt preferences
+ if [ -f config/chroot_apt/preferences.orig ]
+ then
+ mv chroot/etc/apt/preferences.orig chroot/etc/apt/preferences
+ else
+ rm -f chroot/etc/apt/preferences
+ fi
+
# Removing stage file
rm -f .stage/chroot_apt
;;
diff --git a/helpers/lh_config b/helpers/lh_config
index 3ffb6f4..7c20e1b 100755
--- a/helpers/lh_config
+++ b/helpers/lh_config
@@ -764,6 +764,7 @@ LH_SECTIONS="${LH_SECTIONS}"
EOF
# Creating lh_chroot_* configuration
+mkdir -p config/chroot_apt
mkdir -p config/chroot_local-hooks
mkdir -p config/chroot_local-includes
mkdir -p config/chroot_local-packages
--
debian-live/live-helper
More information about the debian-live-changes
mailing list