]> git.ipfire.org Git - pakfire.git/commitdiff
db: Fix filelist queries
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Oct 2022 13:49:50 +0000 (13:49 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Oct 2022 13:49:50 +0000 (13:49 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/db.c

index 15a26539fdc7327ca1a747b5b953b1b3b4c5d0bb..260f7953653aca868322a40e6cc41a39f893293c 100644 (file)
@@ -416,8 +416,8 @@ static int pakfire_db_create_schema(struct pakfire_db* db) {
                        "config            INTEGER, "
                        "datafile          INTEGER, "
                        "mode              INTEGER, "
-                       "user              TEXT, "
-                       "'group'           TEXT, "
+                       "uname             TEXT, "
+                       "gname             TEXT, "
                        "ctime             INTEGER, "
                        "mtime             INTEGER, "
                        "capabilities      TEXT, "
@@ -2230,8 +2230,8 @@ int pakfire_db_filelist(struct pakfire_db* db, struct pakfire_filelist** filelis
                        "path, "
                        "size, "
                        "mode, "
-                       "user, "
-                       "'group', "
+                       "uname, "
+                       "gname, "
                        "ctime, "
                        "mtime, "
                        "digest_sha2_512, "
@@ -2326,12 +2326,16 @@ int pakfire_db_package_filelist(struct pakfire_db* db, struct pakfire_filelist**
                        "path, "
                        "size, "
                        "mode, "
-                       "user, "
-                       "'group', "
+                       "uname, "
+                       "gname, "
                        "ctime, "
                        "mtime, "
-                       "digest_sha512, "
-                       "digest_sha256 "
+                       "digest_sha2_512, "
+                       "digest_sha2_256, "
+                       "digest_blake2b512, "
+                       "digest_blake2s256, "
+                       "digest_sha3_512, "
+                       "digest_sha3_256 "
                "FROM files "
 
                // Select all files that belong to this package