summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-26 13:56:47 -0500
committerJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-26 13:56:47 -0500
commit20c6c05f4f6df99000d839bf587bee05869be871 (patch)
tree6ffac29029b1d66c75dc7fd843fe9e5393b86dd0
parent21a166c7487b3cc29e03d7ae4aac68a45828686d (diff)
fix in fullpkg-ng
-rwxr-xr-xfullpkg-ng6
1 files changed, 3 insertions, 3 deletions
diff --git a/fullpkg-ng b/fullpkg-ng
index c1d2775..3b54567 100755
--- a/fullpkg-ng
+++ b/fullpkg-ng
@@ -269,6 +269,7 @@ build_packages=$(sort -gr $buildorder | cut -d: -f2)
while [ ${#build_packages[@]} -gt 0 ]; do
build_packages=$(sort -gr $buildorder | cut -d: -f2)
pushd $build_dir/${build_packages[0]} > /dev/null
+ unset build_packages
source PKGBUILD
msg2 "${pkgbase:-${pkgname[0]}} $pkgver-$pkgrel"
if ! grep mips64el PKGBUILD >/dev/null; then
@@ -278,7 +279,7 @@ while [ ${#build_packages[@]} -gt 0 ]; do
# Check if pkg is being built, if it's not let everybody know we're building this.
check_queue || {
echo "someone_is_building:$(basename $PWD)" >> $build_dir/log
- egrep -vwh ${build_packages[0]} $buildorder > $buildorder.2
+ egrep -vwh "$(basename $PWD)" $buildorder > $buildorder.2
continue
}
update_queue || {
@@ -286,7 +287,7 @@ while [ ${#build_packages[@]} -gt 0 ]; do
}
pkgbuild-check-nonfree || [ $? -eq 15 ] && {
echo "nonfree:$(basename $PWD)" >> $build_dir/log
- egrep -vwh ${build_packages[0]} $buildorder > $buildorder.2
+ egrep -vwh "$(basename $PWD)" $buildorder > $buildorder.2
continue
}
$FULLBUILDCMD; r=$?
@@ -304,7 +305,6 @@ while [ ${#build_packages[@]} -gt 0 ]; do
esac
egrep -vwh ${build_packages[0]} $buildorder > $buildorder.2
mv $buildorder.2 $buildorder
- unset build_packages
popd > /dev/null
done