]> pd.if.org Git - zpackage/commitdiff
install will init the localdb if it does not exist
authorNathan Wagner <nw@hydaspes.if.org>
Sun, 30 Sep 2018 12:39:13 +0000 (12:39 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sun, 30 Sep 2018 12:39:13 +0000 (12:39 +0000)
zpm-install

index 3ce6e156dcfcabc306efd72646db4b07b8b1b595..b0cb8aa37a9a1ba379c1db88554d4d4ca8d5e2d1 100755 (executable)
@@ -84,6 +84,10 @@ if [ -z "$localdb" ]; then
        localdb=${rootdir:-/}/var/lib/zpm/local.db
 fi
 
+if [ ! -f "$localdb" ]; then
+       zpm init "$localdb"
+fi
+
 ZPMDB=$localdb
 export ZPMDB