]> TLD Linux GIT Repositories - packages/poldek.git/blob - sqlite-rpmdb.patch
- https-redirect.patch from PLD
[packages/poldek.git] / sqlite-rpmdb.patch
1 --- poldek-0.42.2/pm/rpmorg/rpm.c.orig  2020-01-25 22:59:59.000000000 +0100
2 +++ poldek-0.42.2/pm/rpmorg/rpm.c       2020-11-01 10:11:24.892206997 +0100
3 @@ -286,6 +286,10 @@
4  
5      pm_rpm = pm_rpm;
6  
7 +    char *backend = rpmExpand("%{_db_backend}", NULL);
8 +    if (backend != NULL && strncmp(backend, "sqlite", 6) == 0) {
9 +        file = "rpmdb.sqlite";
10 +    }
11      snprintf(path, sizeof(path), "%s/%s", dbpath, file);
12  
13      if (stat(path, &st) != 0)