diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-08-28 18:36:51 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-08-29 13:58:49 +0200 |
commit | d70918d18af105f57ca38f06c0f3590bedf8e197 (patch) | |
tree | ed76e37988b9b878cd5b9bfa0f4fa6b2e730173f /archbuild | |
parent | 6da47a8f6a1e42a753a4e945e9ac696668a6cc39 (diff) | |
download | devtools-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-x | archbuild | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 \ |