We don't need ts to stash the keyid locally now
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 16 Jun 2008 08:12:15 +0000 (11:12 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 30 Jun 2008 12:16:32 +0000 (15:16 +0300)
lib/package.c

index 53fa183..022d939 100644 (file)
@@ -162,10 +162,10 @@ Header headerRegenSigHeader(const Header h, int noArchiveSize)
 
 /**
  * Remember current key id.
- * @param ts           transaction set
+ * @param dig          OpenPGP packet containter
  * @return             0 if new keyid, otherwise 1
  */
-static int rpmtsStashKeyid(rpmts ts, pgpDig dig)
+static int stashKeyid(pgpDig dig)
 {
     pgpDigParams sigp = dig ? &dig->signature : NULL;
     unsigned int keyid;
@@ -815,7 +815,7 @@ rpmRC rpmReadPackageFile(rpmts ts, FD_t fd, const char * fn, Header * hdrp)
     case RPMRC_NOTTRUSTED:     /* Signature is OK, but key is not trusted. */
     case RPMRC_NOKEY:          /* Public key is unavailable. */
        /* XXX Print NOKEY/NOTTRUSTED warning only once. */
-    {  int lvl = (rpmtsStashKeyid(ts, dig) ? RPMLOG_DEBUG : RPMLOG_WARNING);
+    {  int lvl = (stashKeyid(dig) ? RPMLOG_DEBUG : RPMLOG_WARNING);
        rpmlog(lvl, "%s: %s", fn, msg);
     }  break;
     case RPMRC_NOTFOUND:       /* Signature is unknown type. */