]> pd.if.org Git - zpackage/blobdiff - lib/script_hash.c
add where clause argument to findpkg
[zpackage] / lib / script_hash.c
index 2185f77cae20a4dc22ac6ce5f06bf2cda0fac4fe..ebca5508d4c65f80fc335c1d20b51ee8fa89173e 100644 (file)
@@ -35,7 +35,7 @@ int zpm_script_hash(struct zpm *zpm, char *pkgstr, char *phase, char *hash) {
        char *template = "select hash from scripts_pkgid where pkgid = %Q and stage = %Q";
        sqlite3_stmt *st;
 
-       pkgid = zpm_findpkg(zpm, pkgstr);
+       pkgid = zpm_findpkg(zpm, pkgstr, NULL);
 
        st = zpm_dbquery(zpm, template, pkgid, phase);