X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-findpkg.c;h=4ee3f120e9131d84efd401fd5c9b9dd1b8ce6981;hb=4b448fbc77510c589cc7f367c05bef63acc07858;hp=2ce88f67b3b6d50af29dc70a4540e3f98e0cf42e;hpb=30aa9bfe1e9a0e682f7c942b8e68054551f14857;p=zpackage diff --git a/zpm-findpkg.c b/zpm-findpkg.c index 2ce88f6..4ee3f12 100644 --- a/zpm-findpkg.c +++ b/zpm-findpkg.c @@ -22,6 +22,9 @@ int main(int ac, char **av){ sqlite3_str *query; dbfile = getenv("ZPMDB"); + if (!dbfile) { + dbfile = "/var/lib/zpm/local.db"; + } include = sqlite3_str_new(NULL); exclude = sqlite3_str_new(NULL);