summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Scarpino <andrea@archlinux.org>2010-11-21 13:27:25 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-11-22 16:07:14 +0100
commit25133fcd17f1edef751d70a649170013c0b01dbf (patch)
tree973d765e24358a915751e9cef2433712910d3461
parente3d2f1a020b8df84182427fbb9f6f28c4afddc84 (diff)
Fetch the right architecture when a repo contains dash
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rwxr-xr-xarchbuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/archbuild b/archbuild
index 55c4633..925d072 100755
--- a/archbuild
+++ b/archbuild
@@ -9,7 +9,7 @@ if [ "${cmd%-*}" == 'multilib' ]; then
base_packages+=' gcc-multilib libtool-multilib'
else
repo=${cmd%-*}
- arch=${cmd#*-}
+ arch=${cmd##*-}
fi
chroots='/var/tmp/archbuild'
clean_first=false