summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-26 13:34:33 -0500
committerJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-26 13:34:33 -0500
commitd74e1a0c4a9cc45ba9846b4093ae5222e08c3d4c (patch)
tree43c904433f8ed9ff8b07f905cf05f32c2e4bc14c
parent64c019b64b2831b1799015b8e0ff17c29bea6dea (diff)
fullpkg:
* check_queue only fails if pkg is in queue * if pkg in queue do not build * nonfree are only anounced at finishing
-rwxr-xr-xfullpkg-ng9
1 files changed, 6 insertions, 3 deletions
diff --git a/fullpkg-ng b/fullpkg-ng
index 7dda8d2..1811771 100755
--- a/fullpkg-ng
+++ b/fullpkg-ng
@@ -73,7 +73,7 @@ remove_queue() {
# Checks if a package is listed
check_queue() {
- get_queue || return $?
+ get_queue
local packager=$(grep -w "$(basename $PWD)" ${queue_file} | cut -d ':' -f2)
@@ -175,12 +175,15 @@ function find_deps {
force_build=""
level=0
noupdate='n'
+build_only='n'
check_deps_only='n'
max_level=21
while getopts 'ha:cd:l:nm:' arg; do
case $arg in
h) usage; exit 0 ;;
a) ABSROOT="$OPTARG" ;;
+ # TODO: build only, require also build_dir
+ # b) build_only='y'
c) check_deps_only='y' ;;
# f) force_build+="-f pkgname " ;;
d) build_dir="$OPTARG" ;;
@@ -273,11 +276,11 @@ while [ ${#build_packages[@]} -gt 0 ]; do
sed -i "s/^\(arch=([^)anym]\+\))/\1 'mips64el')/" "PKGBUILD"
fi
# Check if pkg is being built, if it's not let everybody know we're building this.
- check_queue && update_queue || {
+ check_queue || continue
+ update_queue || {
warning "Couldn't update the queue, let your partners know about this."
}
pkgbuild-check-nonfree || [ $? -eq 15 ] && {
- error "nonfree deps found in $(basename $PWD)"
echo "nonfree:$(basename $PWD)" >> $build_dir/log
egrep -vwh ${build_packages[0]} $buildorder > $buildorder.2
continue