andrewgregory / pacutils

Helper library for libalpm based programs.
MIT License
107 stars 17 forks source link

--dbext= doesn't have any effect #39

Closed mariobl closed 2 years ago

mariobl commented 4 years ago

Hello,

while translating the man page into German, I stumbled upon this:

--dbext=extension Set an alternate sync database extension.

Because I haven't used this option ever before, I tried to test it, but regardless of what I use as a value, the output of Pacinfo is the same. Pacinfo even doesn't complain when I use any bogus value or leave the value empty. I think, this option needs some more explained.

andrewgregory commented 4 years ago

diff -u <(pacinfo pacutils --dbext=.db --debug) <(pacinfo pacutils --dbext=.foobar --debug) | head -n10

--- /proc/self/fd/11    2020-10-08 12:05:07.150537788 -0700
+++ /proc/self/fd/13    2020-10-08 12:05:07.150537788 -0700
@@ -1,23 +1,15 @@
 registering sync database 'core'
-database path for tree core set to /var/lib/pacman/sync/core.db
-"/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
-sig path /var/lib/pacman/sync/core.db.sig could not be opened
-missing optional signature
+database path for tree core set to /var/lib/pacman/sync/core.foobar
+"/var/lib/pacman/sync/core.foobar" is not readable: No such file or directory