diff options
author | B. Watson <yalhcru@gmail.com> | 2017-03-15 03:32:59 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2017-03-15 03:32:59 -0400 |
commit | 6544d0dd630f17d080225ede05a441e2cee48326 (patch) | |
tree | c4845c7b02771feaac9de41053aee3abc1c0dff7 /sbodeps | |
parent | 73b04b963c2311f54a29ced60ba87edb1176f2fe (diff) | |
download | sbostuff-6544d0dd630f17d080225ede05a441e2cee48326.tar.gz |
fix sbodeps -q, make it actually honor -i
Diffstat (limited to 'sbodeps')
-rwxr-xr-x | sbodeps | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |