]> TLD Linux GIT Repositories - packages/poldek.git/blobdiff - sqlite-rpmdb.patch
- merged fixes from PLD
[packages/poldek.git] / sqlite-rpmdb.patch
diff --git a/sqlite-rpmdb.patch b/sqlite-rpmdb.patch
new file mode 100644 (file)
index 0000000..ffe5eaa
--- /dev/null
@@ -0,0 +1,13 @@
+--- poldek-0.42.2/pm/rpmorg/rpm.c.orig 2020-01-25 22:59:59.000000000 +0100
++++ poldek-0.42.2/pm/rpmorg/rpm.c      2020-11-01 10:11:24.892206997 +0100
+@@ -286,6 +286,10 @@
+     pm_rpm = pm_rpm;
++    char *backend = rpmExpand("%{_db_backend}", NULL);
++    if (backend != NULL && strncmp(backend, "sqlite", 6) == 0) {
++        file = "rpmdb.sqlite";
++    }
+     snprintf(path, sizeof(path), "%s/%s", dbpath, file);
+     if (stat(path, &st) != 0)