Allowing also symlinks in chroot_local-packages (Closes: #593186).

This commit is contained in:
Daniel Baumann 2010-09-16 18:16:19 +02:00
parent df8bb8ecf7
commit b37bdd8f37
1 changed files with 18 additions and 2 deletions

View File

@ -204,13 +204,29 @@ EOF
# Copy packages
if Find_files config/chroot_local-packages/*_"${LB_ARCHITECTURE}".deb
then
for FILE in config/chroot_local-packages/*_"${LB_ARCHITECTURE}".deb
do
if [ -L "${FILE}" ]
then
cp -L config/chroot_local-packages/*_"${LB_ARCHITECTURE}".deb chroot/root/local-packages
else
cp ${CP_OPTIONS} config/chroot_local-packages/*_"${LB_ARCHITECTURE}".deb chroot/root/local-packages
fi
done
fi
if Find_files config/chroot_local-packages/*_all.deb
then
for FILE in config/chroot_local-packages/*_all.deb
do
if [ -L "${FILE}" ]
then
cp -L config/chroot_local-packages/*_all.deb chroot/root/local-packages
else
cp ${CP_OPTIONS} config/chroot_local-packages/*_all.deb chroot/root/local-packages
fi
done
fi
if Find_files chroot/root/local-packages/*.deb
then