added print deps

This commit is contained in:
wt
2025-01-15 19:08:16 +07:00
parent 256dd28e05
commit a05836abfd
+14 -2
View File
@@ -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
;;
*)