summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-30 13:08:40 -0500
committerJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-30 13:08:40 -0500
commit59b7668ec6e19b03d90972fd9ed6cfb538904972 (patch)
tree190702b74a045990b8a87d17913c9ae5f2d487be
parentb07a02f6b4b07562842e630fea959c3ebb6502c4 (diff)
* build_packages is an array
-rwxr-xr-xfullpkg-ng6
1 files changed, 3 insertions, 3 deletions
diff --git a/fullpkg-ng b/fullpkg-ng
index 0c74b34..4ab4ab0 100755
--- a/fullpkg-ng
+++ b/fullpkg-ng
@@ -178,9 +178,9 @@ function find_deps {
function _pkg_build () {
pushd ${build_dir} > /dev/null
- build_packages=$(sort -gr $buildorder | cut -d: -f2)
- while [ ${#build_packages[@]} -gt 1 ]; do
- build_packages=$(sort -gr $buildorder | cut -d: -f2)
+ build_packages=($(sort -gr $buildorder | cut -d: -f2))
+ while [ ${#build_packages[@]} -ge 1 ]; do
+ build_packages=($(sort -gr $buildorder | cut -d: -f2))
pushd $build_dir/${build_packages[0]} > /dev/null
source PKGBUILD
msg2 "${pkgbase:-${pkgname[0]}} $pkgver-$pkgrel"