X-Git-Url: https://git.tld-linux.org/?p=packages%2Fpoldek.git;a=blobdiff_plain;f=sqlite-rpmdb.patch;fp=sqlite-rpmdb.patch;h=ffe5eaae830069e3f264df27c6535f674fa17548;hp=0000000000000000000000000000000000000000;hb=b39c401088d0afae01ca65c90e8c59a77dbbcb57;hpb=ae8686af22109bd2ed8a8f3587e79209c7dbec0e diff --git a/sqlite-rpmdb.patch b/sqlite-rpmdb.patch new file mode 100644 index 0000000..ffe5eaa --- /dev/null +++ b/sqlite-rpmdb.patch @@ -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)