aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-02-06 17:46:15 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-02-06 17:46:15 +0000
commit8d6fbc79a4246f93acdc58a71b25ce10b85f1d0d (patch)
tree17d9eddf7430047e8426c7c2a629d846d683b394 /trunk/lib
parentce8eea07503c1e0ee2c4cc54094c6ff96682e7ae (diff)
downloadsimplepkg-8d6fbc79a4246f93acdc58a71b25ce10b85f1d0d.tar.gz
simplepkg-8d6fbc79a4246f93acdc58a71b25ce10b85f1d0d.tar.bz2
small fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@486 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib')
-rw-r--r--trunk/lib/common.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 2e36341..4b76e6d 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -324,12 +324,11 @@ function default_arch {
if [ -f "$1/etc/slackware-version" ]; then
arch="`cat $1/etc/slackware-version | awk '{ print $3 }' | sed -e 's/(//' -e 's/)//'`"
- elif [ -f "$1/etc/slamd64-version" ]; then
- arch="`cat $1/etc/slamd64-version | awk '{ print $3 }' | sed -e 's/(//' -e 's/)//'`"
- elif [ -f "$1/etc/bluewhite64-version" ]; then
- arch="`cat $1/etc/bluewhite64-version | awk '{ print $3 }' | sed -e 's/(//' -e 's/)//'`"
- elif [ -f "$1/etc/sflack-version" ]; then
- arch="`cat $1/etc/sflack-version | awk '{ print $3 }' | sed -e 's/(//' -e 's/)//'`"
+ if [ -z "$arch" ]; then
+ arch="i386"
+ fi
+ elif [ -f "$1/etc/slamd64-version" ] || [ -f "$1/etc/bluewhite64-version" ] || [ -f "$1/etc/sflack-version" ]; then
+ arch="x86_64"
else
aaa_base="`basename $(ls $1/var/log/packages/aaa_base-[0-9]* 2> /dev/null)`"
echo `package_arch $aaa_base`