Add informational comments to generated /etc/apt/preferences stanzas.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
This commit is contained in:
Chris Lamb 2008-08-14 01:39:21 +01:00 committed by Daniel Baumann
parent 266165bbe6
commit 252ee4f32c
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,7 @@ case "${1}" in
fi
echo >> chroot/etc/apt/preferences
echo "# Added by lh_chroot_apt ${@}" >> chroot/etc/apt/preferences
echo "Package: *" >> chroot/etc/apt/preferences
echo "Pin: release o=chroot_local-packages" >> chroot/etc/apt/preferences
@ -184,6 +185,7 @@ case "${1}" in
then
# Ensure local packages are not replaced.
echo >> chroot/etc/apt/preferences
echo "# Added by lh_chroot_apt ${@}" >> chroot/etc/apt/preferences
echo "Package: *" >> chroot/etc/apt/preferences
echo "Pin: release o=chroot_local-packages" >> chroot/etc/apt/preferences
echo "Pin-Priority: 99" >> chroot/etc/apt/preferences