aboutsummaryrefslogtreecommitdiff
path: root/sbodeps
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-03-15 03:32:59 -0400
committerB. Watson <yalhcru@gmail.com>2017-03-15 03:32:59 -0400
commit6544d0dd630f17d080225ede05a441e2cee48326 (patch)
treec4845c7b02771feaac9de41053aee3abc1c0dff7 /sbodeps
parent73b04b963c2311f54a29ced60ba87edb1176f2fe (diff)
downloadsbostuff-6544d0dd630f17d080225ede05a441e2cee48326.tar.gz
fix sbodeps -q, make it actually honor -i
Diffstat (limited to 'sbodeps')
-rwxr-xr-xsbodeps10
1 files 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