]> pd.if.org Git - zpackage/commitdiff
make list use default local db
authorNathan Wagner <nw@hydaspes.if.org>
Thu, 25 Oct 2018 17:12:32 +0000 (17:12 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 3 Nov 2018 12:39:52 +0000 (12:39 +0000)
zpm-list

index 0dda9daa68223dfd0ec231a6c8e014e5d1f41d65..2de524b0e89c0e64c9162970deb1103b020e4b39 100755 (executable)
--- a/zpm-list
+++ b/zpm-list
@@ -15,7 +15,7 @@ while getopts :s:f:vn opt; do
 done
 shift $(( OPTIND - 1))
 
-: ${pkgfile:=$ZPMDB}
+: ${pkgfile:=${ZPMDB:-/var/lib/zpm/local.db}}
 
 if [ -z "$pkgfile" ]; then
        echo "must specify package file"