summaryrefslogtreecommitdiff
path: root/fullpkg-ng
diff options
context:
space:
mode:
Diffstat (limited to '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