[arch-projects] [devtools] [PATCH 1/4] archbuild: Use array for base packages

Lukas Fleischer archlinux at cryptocrack.de
Sun Aug 28 12:36:51 EDT 2011


Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 archbuild |    6 +++---
 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 \
-- 
1.7.6.1



More information about the arch-projects mailing list