summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/bin/apk17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/bin/apk b/tests/bin/apk
index cf06ed7..9868230 100755
--- a/tests/bin/apk
+++ b/tests/bin/apk
@@ -15,7 +15,7 @@ while [ $# -gt 0 ]; do
echo "DEBUG: fake apk" "$@"
cmd="$1"
;;
- audit)
+ audit|info)
cmd="$1"
;;
-p|--root)
@@ -28,6 +28,7 @@ while [ $# -gt 0 ]; do
--arch) shift ;;
--repositories-file) shift ;;
--keys-dir) shift ;;
+ -*) subopt="$1";;
[a-z]*)
pkgs="$pkgs $1"
;;
@@ -49,6 +50,20 @@ case "$cmd" in
cache|update|del)
exit 0
;;
+ info)
+ case "$subopt" in
+ -r|--depends)
+ for pkg in $pkgs; do
+ if ! [ -n "$quiet" ]; then
+ printf "%s depends on:\n\n"
+ fi
+ case "$pkg" in
+ *gnome*) printf "gnome-shell\ngvfs\n";;
+ esac
+ done
+ ;;
+ esac
+ ;;
esac
for pkg in $pkgs; do