added print deps
This commit is contained in:
1 parent
256dd28e05
commit
a05836abfd
1 file changed
+14
-2
@@ -257,7 +257,7 @@ l() {
|
|||||||
query() {
|
query() {
|
||||||
packagesquery=$(/usr/bin/cat $packagesqueryfile)
|
packagesquery=$(/usr/bin/cat $packagesqueryfile)
|
||||||
if [[ "$packagesquery" == "" ]]; then
|
if [[ "$packagesquery" == "" ]]; then
|
||||||
printf "$YELLOW**$BWHITE No installed packages\n"
|
printf "$YELLOW**$BWHITE No installed packages\n$RESET"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
printf "$packagesquery\n"
|
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
|
case "$1" in
|
||||||
add|a|del|d)
|
add|a|del|d)
|
||||||
"$1" $@
|
"$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
|
"$1" $2
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in new issue
Block a user