]> pd.if.org Git - zpackage/blobdiff - lib/integ.c
add where clause argument to findpkg
[zpackage] / lib / integ.c
index 016302e43f82dd0725192ea5b807d0d209fc42a7..81667eae77cee6ebd721fabd5d93b1d555a6217a 100644 (file)
@@ -155,7 +155,7 @@ int zpm_package_hash(struct zpm *zpm, char *pkgid, char *hash) {
        /* hash package files */
 
        sql = sqlite3_mprintf("select path, mode, username, groupname, configuration, "
-               "filetype, target, devmajor, devminor, mtime, hash "
+               "filetype, target, device, mtime, hash "
                "from packagefiles_pkgid where pkgid = %Q order by path",
                pkgid);
        hash_query(zpm, sql, &d);
@@ -187,5 +187,4 @@ int zpm_package_sethash(struct zpm *zpm, char *pkgid, char *hash) {
        sqlite3_free(sql);
 
        return 1;
-
 }