|
|
45afda |
From 7e50b3f4b2ebb963d1080a0a1469517ef81f780c Mon Sep 17 00:00:00 2001
|
|
|
45afda |
From: Jes Sorensen <jsorensen@fb.com>
|
|
|
45afda |
Date: Tue, 14 Apr 2020 12:08:09 -0400
|
|
|
45afda |
Subject: [PATCH 25/33] rpmsignverity.c: Clean up debug logging
|
|
|
45afda |
|
|
|
45afda |
Put most logging in one place and avoid printing the same info twice.
|
|
|
45afda |
|
|
|
45afda |
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
|
|
|
45afda |
---
|
|
|
45afda |
sign/rpmsignverity.c | 5 -----
|
|
|
45afda |
1 file changed, 5 deletions(-)
|
|
|
45afda |
|
|
|
45afda |
diff --git a/sign/rpmsignverity.c b/sign/rpmsignverity.c
|
|
|
45afda |
index 2c7d21620..445e1197c 100644
|
|
|
45afda |
--- a/sign/rpmsignverity.c
|
|
|
45afda |
+++ b/sign/rpmsignverity.c
|
|
|
45afda |
@@ -104,7 +104,6 @@ rpmRC rpmSignVerity(FD_t fd, Header sigh, Header h, char *key,
|
|
|
45afda |
rpmfi hfi = rpmfiNew(NULL, h, RPMTAG_BASENAMES, RPMFI_FLAGS_QUERY);
|
|
|
45afda |
rpmts ts = rpmtsCreate();
|
|
|
45afda |
struct rpmtd_s td;
|
|
|
45afda |
- rpm_loff_t file_size;
|
|
|
45afda |
off_t offset = Ftell(fd);
|
|
|
45afda |
const char *compr;
|
|
|
45afda |
char *rpmio_flags = NULL;
|
|
|
45afda |
@@ -158,12 +157,8 @@ rpmRC rpmSignVerity(FD_t fd, Header sigh, Header h, char *key,
|
|
|
45afda |
nr_files, rpmfiFC(fi));
|
|
|
45afda |
|
|
|
45afda |
while (rpmfiNext(fi) >= 0) {
|
|
|
45afda |
- file_size = rpmfiFSize(fi);
|
|
|
45afda |
idx = rpmfiFX(fi);
|
|
|
45afda |
|
|
|
45afda |
- rpmlog(RPMLOG_DEBUG, _("file: %s, (size %li, link %s, idx %i)\n"),
|
|
|
45afda |
- rpmfiFN(fi), file_size, rpmfiFLink(fi), rpmfiFX(fi));
|
|
|
45afda |
-
|
|
|
45afda |
signatures[idx] = rpmVeritySignFile(fi, &sig_size, key, keypass, cert);
|
|
|
45afda |
}
|
|
|
45afda |
|
|
|
45afda |
--
|
|
|
45afda |
2.27.0
|
|
|
45afda |
|