Honor --root in rpmkeys too
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Jan 2011 10:06:37 +0000 (12:06 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Jan 2011 10:06:37 +0000 (12:06 +0200)
rpmkeys.c

index e661899..b91bb27 100644 (file)
--- a/rpmkeys.c
+++ b/rpmkeys.c
@@ -60,6 +60,8 @@ int main(int argc, char *argv[])
     if (mode != MODE_LISTKEY && args == NULL)
        argerror(_("no arguments given"));
 
+    rpmtsSetRootDir(ts, rpmcliRootDir);
+
     switch (mode) {
     case MODE_CHECKSIG:
        ec = rpmcliVerifySignatures(ts, args);