X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=lib%2Finteg.c;h=57e7d87936bfd29417587248c9acb01f674ef352;hb=339988d64465820bfce614d4939cdf6a03cd3c51;hp=6abfcf340cff7087ea82a75c9e83cffd215fa130;hpb=62b81a9629f5a80a4cf9d8fae6f778e2b857c2a6;p=zpackage diff --git a/lib/integ.c b/lib/integ.c index 6abfcf3..57e7d87 100644 --- a/lib/integ.c +++ b/lib/integ.c @@ -127,6 +127,10 @@ static void hash_query(struct zpm *zpm, const char *zSql, struct sha256_state *h hash_byte(h, 'B'); hash_int(h, bytes); break; + default: + hash_byte(h, 'U'); + continue; + break; } sha256_process(h, data, bytes); } @@ -155,7 +159,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);