diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2012-03-03 11:10:31 -0600 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2012-03-03 11:10:31 -0600 |
commit | ff02084e732bfbbb2986d4c04373ff577cb2e488 (patch) | |
tree | 304a810d37b7961ca2769b5093858b11117f516b /fullpkg-find | |
parent | b0f34edcb6a7ef1a6a96423b12994943b90af5ed (diff) | |
parent | 73c4144faeea20c20ce7dfb977cd07077e82c0e3 (diff) |
Merge branch 'master' of gitpar:libretools
Diffstat (limited to 'fullpkg-find')
-rwxr-xr-x | fullpkg-find | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/fullpkg-find b/fullpkg-find index 8c0c063..9ddfa08 100755 --- a/fullpkg-find +++ b/fullpkg-find @@ -80,17 +80,16 @@ find_deps() { local found=false # TODO change for where_is or toru-path - local pkgdir=$(toru -p ${_dep}) + # May fail, e.g. since abslibre-mips64el doesn't include + # arch=any packages. + local pkgdir=$(toru -p ${_dep}) || true if [ -n "$pkgdir" -a -d "${pkgdir}" ]; then found=true pushd "${pkgdir}" > /dev/null # runs itself on dep's PKGBUILD dir - $0 -l ${next_level} ${build_dir} - -# probable circular deps - [ $? -eq 20 ] && return 20 + $0 -l ${next_level} ${build_dir} || return $? popd > /dev/null fi @@ -188,13 +187,8 @@ fi find_deps || { # Probable circular deps - if [ "$?" -eq 20 ]; then - -# Show error only on level 0 - if [ "$LEVEL" -eq 0 ]; then + if [ "$?" -eq 20 -a "$LEVEL" -eq 0 ]; then error "Check for circular deps on $build_dir/BUILDORDER"; - fi - fi # Pass message 20 exit 20 |