summaryrefslogtreecommitdiff
path: root/archbuild
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-08-28 18:36:51 +0200
committerPierre Schmitz <pierre@archlinux.de>2011-08-29 13:58:49 +0200
commitd70918d18af105f57ca38f06c0f3590bedf8e197 (patch)
treeed76e37988b9b878cd5b9bfa0f4fa6b2e730173f /archbuild
parent6da47a8f6a1e42a753a4e945e9ac696668a6cc39 (diff)
downloaddevtools32-d70918d18af105f57ca38f06c0f3590bedf8e197.tar.xz
archbuild: Use array for base packages
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'archbuild')
-rwxr-xr-xarchbuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/archbuild b/archbuild
index 19b734b..fa16914 100755
--- a/archbuild
+++ b/archbuild
@@ -1,12 +1,12 @@
#!/bin/bash
-base_packages='base base-devel sudo'
+base_packages=(base base-devel sudo)
cmd="$(basename "${0%-build}")"
if [ "${cmd%-*}" == 'multilib' ]; then
repo="${cmd}"
arch='x86_64'
- base_packages+=' multilib-devel'
+ base_packages+=(multilib-devel)
else
repo=${cmd%-*}
arch=${cmd##*-}
@@ -56,7 +56,7 @@ if ${clean_first} || [ ! -d "${chroots}/${repo}-${arch}" ]; then
-C /usr/share/devtools/pacman-${repo}.conf \
-M /usr/share/devtools/makepkg-${arch}.conf \
${chroots}/${repo}-${arch}/root \
- ${base_packages}
+ "${base_packages[@]}"
else
setarch ${arch} mkarchroot \
-u \