From bb56b10384649bb97bbc42722115fa586a9b67a8 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Thu, 7 Aug 2008 22:05:08 +0100 Subject: Ensure packages in config/chroot_local-packages override all others. This reverts config/chroot_local-packages to almost original semantics by giving any package in chroot_local-packages a priority of 1001, allowing it to "downgrade" packages and generally override the standard APT sources. I think this follows the idea of this directory more and is likely to be more useful with this setup - rebuilding a package simply to bump a version number or keeping a custom apt_preferences(5) file around kinda sucks, especially as it is often used as a temporary workaround. --- helpers/lh_chroot_install-packages | 18 ++++++++++++++++-- helpers/lh_chroot_sources | 2 +- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/helpers/lh_chroot_install-packages b/helpers/lh_chroot_install-packages index 469d0a2..169510b 100755 --- a/helpers/lh_chroot_install-packages +++ b/helpers/lh_chroot_install-packages @@ -47,18 +47,32 @@ then # Restoring cache Restore_cache cache/packages_chroot + # Ensure chroot_local-packages override all other packages + if [ -e chroot/etc/apt/preferences ] + then + cp chroot/etc/apt/preferences chroot/etc/apt/preferences.live + fi + + cat >> chroot/etc/apt/preferences.live < Release" | Chroot sh _LH_DOTGNUPG_EXISTED=0 -- cgit v1.0