Correcting win32-loader copy call to work with non-chrooted builds too.

This commit is contained in:
Daniel Baumann 2009-03-05 16:33:31 +01:00
parent f2a30e7d0e
commit 336a46f226
1 changed files with 14 additions and 8 deletions

View File

@ -46,6 +46,8 @@ if [ "${LH_DISTRIBUTION}" != "etch" ]
then then
case "${LH_ARCHITECTURE}" in case "${LH_ARCHITECTURE}" in
amd64|i386) amd64|i386)
if [ "${LH_CHROOT_BUILD}" = "enabled" ]
then
# Checking depends # Checking depends
Check_package chroot/usr/lib/win32-loader/win32-loader.exe win32-loader Check_package chroot/usr/lib/win32-loader/win32-loader.exe win32-loader
@ -57,6 +59,10 @@ then
# Copying win32-loader # Copying win32-loader
cp chroot/usr/lib/win32-loader/* binary cp chroot/usr/lib/win32-loader/* binary
else
cp /usr/lib/win32-loader/* binary
fi
mv binary/win32-loader.exe binary/setup.exe mv binary/win32-loader.exe binary/setup.exe
if [ "${LH_DEBIAN_INSTALLER}" != "disabled" ] if [ "${LH_DEBIAN_INSTALLER}" != "disabled" ]