From d9a0202d1b1958a9e91601886d36ac50fca22d45 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 Feb 2012 22:35:39 +0100 Subject: Dereferencing potential symlinked apt preference files in chroot_apt/*.pref. --- scripts/build/lb_chroot_apt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/build/lb_chroot_apt b/scripts/build/lb_chroot_apt index f981c5298..95c6159cc 100755 --- a/scripts/build/lb_chroot_apt +++ b/scripts/build/lb_chroot_apt @@ -117,7 +117,7 @@ case "${1}" in mv chroot/etc/apt/preferences.d/$(basename ${_FILE}) chroot/etc/apt/preferences.d/$(basename ${_FILE}).orig fi - cp ${_FILE} chroot/etc/apt/preferences.d + cp -aL ${_FILE} chroot/etc/apt/preferences.d done fi @@ -270,7 +270,7 @@ EOF mv chroot/etc/apt/preferences.d/$(basename ${_FILE}) chroot/etc/apt/preferences.d/$(basename ${_FILE}).orig fi - cp ${_FILE} chroot/etc/apt/preferences.d + cp -aL ${_FILE} chroot/etc/apt/preferences.d if [ -f chroot/etc/apt/preferences.d/$(basename ${_FILE}) ] then -- cgit v1.2.3