Take win32-loader from the target distribution by using the chroot.

This commit is contained in:
Daniel Baumann 2009-02-08 10:35:25 +01:00
parent 069aa8723c
commit 192c94747b
1 changed files with 23 additions and 9 deletions

View File

@ -37,18 +37,32 @@ Check_lockfile .lock
# Creating lock file
Create_lockfile .lock
# Copying win32-loader
if [ "${LH_WIN32_LOADER}" = "enabled" ]
if [ "${LH_WIN32_LOADER}" = "enabled" ] && [ "${LH_DISTRIBUTION}" != "etch" ]
then
case "${LH_ARCHITECTURE}" in
amd64|i386)
if Find_files /usr/lib/win32-loader/*
then
cp /usr/lib/win32-loader/* binary
else
Echo_warning "win32-loader inclusion is enabled but not found, ignoring."
fi
;;
# Checking depends
Check_package chroot/usr/lib/win32-loader/win32-loader.exe win32-loader
# Restoring cache
Restore_cache cache/packages_binary
# Installing depends
Install_package
# Copying win32-loader
cp chroot/usr/lib/win32-loader/* binary
# Saving cache
Save_cache cache/packages_binary
# Removing depends
Remove_package
;;
*)
Echo_warning "win32-loader inclusion is enabled but not compatible with your architecture, ignoring."
;;
esac
fi