Making default argument guessing for non-debian systems a bit more robust.

This commit is contained in:
Daniel Baumann 2010-12-05 15:24:53 +01:00
parent c5f79482d3
commit 7be98b8ec2
1 changed files with 8 additions and 2 deletions

View File

@ -259,8 +259,14 @@ Set_defaults ()
LB_ARCHITECTURES="amd64"
;;
*)
Echo_warning "Can't determine architecture, assuming i386"
LB_ARCHITECTURES="i386"
if [ -e /lib64 ]
then
LB_ARCHITECTURES="amd64"
else
LB_ARCHITECTURES="i386"
fi
Echo_warning "Can't determine architecture, assuming ${LB_ARCHITECTURES}"
;;
esac
fi