From 6544d0dd630f17d080225ede05a441e2cee48326 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 15 Mar 2017 03:32:59 -0400 Subject: fix sbodeps -q, make it actually honor -i --- sbodeps | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sbodeps b/sbodeps index 9eeb692..87a274b 100755 --- a/sbodeps +++ b/sbodeps @@ -2,7 +2,9 @@ # This really is a bash script, please don't change to #!/bin/sh -SBOROOT=${SBOROOT:-/home/urchlay/slackbuilds/sbo/14.1/} +# TODO: rewrite, this is fugly. Maybe use perl instead of bash. + +SBOROOT=${SBOROOT:-/home/urchlay/sbogit} if [ ! -d $SBOROOT ]; then SBOROOT=. fi @@ -106,7 +108,11 @@ RETVAL=0 for arg; do echo -n $arg print_installed_status $arg - [ "$QUEUE" = "yes" ] && ! pkg_is_installed $arg && echo 0 $arg >> $QTMPFILE + if [ "$QUEUE" = "yes" ]; then + if ! pkg_is_installed $arg || [ "$IGNORE" = "yes" ]; then + echo 0 $arg >> $QTMPFILE + fi + fi find_deps 1 $arg done -- cgit v1.2.3