--- scanelf-packagecheck-0.04.bash 2007-10-11 12:24:44.000000000 -0400 +++ scanelf-packagecheck-0.05.bash 2007-10-11 12:24:27.000000000 -0400 @@ -9,7 +9,8 @@ # - As fast as possible. # - Package-manager agnostic. # -# TODO: Sanity checks. +# TODO: Sanity checks +# for qfile # # NOTE: If there's ever a package manager that doesn't respect --pretend, bugs # will arise. @@ -225,7 +226,7 @@ ewarn "Falling back to Portage default." get_pm Portage fi;; - Paludis) if hash Paludis 2> /dev/null; then + Paludis) if hash paludis 2> /dev/null; then remerge() { paludis -1i "$@"; } else eerror "Unable to find Paludis binary in PATH." @@ -255,6 +256,10 @@ for conf in /etc/revdep-rebuild/*; do [[ -r $conf ]]&& orphans_to_skip+=($(. "$conf"; echo "$LD_LIBRARY_MASK")) done + hash q 2> /dev/null && return 0 + eerror "Unable to find q binary in PATH." + eerror "$APPNAME depends on app-portage/portage-utils: Please install it." + die 0 "Unable to continue" } ##