diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-11-24 11:16:19 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-11-24 11:16:19 +0200 |
commit | 4537c8c8bc1ece123f22f10a43b5b9a2a8c77cd4 (patch) | |
tree | 08c6d5e431142d19ccf9ce0880d45a05a48314b4 | |
parent | 858a328cd0f7d4bcd8500c78faaf00e4f8033df6 (diff) | |
download | librpm-tizen-4537c8c8bc1ece123f22f10a43b5b9a2a8c77cd4.tar.gz librpm-tizen-4537c8c8bc1ece123f22f10a43b5b9a2a8c77cd4.tar.bz2 librpm-tizen-4537c8c8bc1ece123f22f10a43b5b9a2a8c77cd4.zip |
Log an error on attempt to sign V3 packages (RhBug:517818 & others)
- We haven't been able to sign V3 packages in the last decade or so,
might as well spit out an error on it instead of silently failing.
-rw-r--r-- | lib/signature.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/signature.c b/lib/signature.c index a1293cb4f..f5c80c984 100644 --- a/lib/signature.c +++ b/lib/signature.c @@ -310,6 +310,9 @@ static int makeHDRDigest(Header sigh, const char * file, rpmTagVal sigTag) (void) rpmDigestUpdate(ctx, utd.data, utd.count); (void) rpmDigestFinal(ctx, (void **)&SHA1, NULL, 1); rpmtdFreeData(&utd); + } else { + rpmlog(RPMLOG_ERR, _("Cannot sign RPM v3 packages\n")); + goto exit; } if (SHA1 == NULL) |