added print deps
This commit is contained in:
@@ -257,7 +257,7 @@ l() {
|
||||
query() {
|
||||
packagesquery=$(/usr/bin/cat $packagesqueryfile)
|
||||
if [[ "$packagesquery" == "" ]]; then
|
||||
printf "$YELLOW**$BWHITE No installed packages\n"
|
||||
printf "$YELLOW**$BWHITE No installed packages\n$RESET"
|
||||
exit 0
|
||||
fi
|
||||
printf "$packagesquery\n"
|
||||
@@ -354,11 +354,23 @@ clear() {
|
||||
}
|
||||
#------------------------------------------------------------------------
|
||||
|
||||
deps() {
|
||||
if [ "$1" = "" ]; then
|
||||
help
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -f $installedpackagesdir/$1.pkg/deps ]; then
|
||||
printf "$YELLOW**$BWHITE No deps\n$RESET"
|
||||
exit 0
|
||||
fi
|
||||
cat $installedpackagesdir/$1.pkg/deps
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
add|a|del|d)
|
||||
"$1" $@
|
||||
;;
|
||||
query|q|help|s|sync|clear|ss|search|list|l|unpack|u|down|download)
|
||||
query|q|help|s|sync|clear|ss|search|list|l|unpack|u|down|download|deps)
|
||||
"$1" $2
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user