From 937415f6f8988661d9fa577da1262712a7bfb4d8 Mon Sep 17 00:00:00 2001 From: Joshua Ismael Haase Hernández Date: Thu, 2 Jun 2011 01:58:59 -0500 Subject: fullpkg-ng corrected if statement on find_deps --- fullpkg-ng | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fullpkg-ng b/fullpkg-ng index 537a7ca..a80f962 100755 --- a/fullpkg-ng +++ b/fullpkg-ng @@ -156,8 +156,8 @@ function find_deps { # if search pkgname in repo doesn't work # this should find pkgsplits elif _dir=($(find "$ABSROOT/${_repo}" -type f -name PKGBUILD -print0 | \ - "xargs" -0 -e grep -HEw "pkgbase|pkgname|provides" | grep $_dep 2>&1)) - [ -n "$_dir" ]; then + "xargs" -0 -e grep -HEw "pkgname|pkgbase|provides" | grep $_dep 2>&1)); + then pushd $(dirname $(echo $_dir | cut -d: -f1)) > /dev/null $0 -c -d ${build_dir} -l ${next_level} # Circular deps must fail -- cgit v1.2.3-54-g00ecf