summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-06-01 14:47:30 -0500
committerJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-06-01 14:47:30 -0500
commitaa2e26e54ba59741a36d9d802b9cd8ef156d7510 (patch)
tree28bf9ef6f9b1ee12908538f078da1cc16d32f061
parent206df56bc34fe60e2041240cc5e0d62b0befd71a (diff)
fullpkg-ng declare build_packages on cycle end
-rwxr-xr-xfullpkg-ng3
1 files changed, 2 insertions, 1 deletions
diff --git a/fullpkg-ng b/fullpkg-ng
index 3f44258..a6e9732 100755
--- a/fullpkg-ng
+++ b/fullpkg-ng
@@ -182,7 +182,6 @@ function _pkg_build () {
# greater levels must be built first
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"
@@ -243,6 +242,8 @@ function _pkg_build () {
mv $buildorder.2 $buildorder
# Take package out from queue
remove_queue
+ # Set build_packages before next cycle run
+ build_packages=($(sort -gr $buildorder | cut -d: -f2))
popd > /dev/null
done
pkgs=$(cat $build_dir/log | grep "nonfree:") && {