From 28470d2e9c62dbeee333f74d9669a6d5a5641cd5 Mon Sep 17 00:00:00 2001 From: stop5 Date: Wed, 10 Jul 2024 09:07:53 +0200 Subject: [PATCH 1/2] added new tags sha256 hashsum and everything after modularitylabel extracted from include/rpm/rpmtag.h in the rpm-4.19.1.1.tar from rpm.org --- rpmfile/headers.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rpmfile/headers.py b/rpmfile/headers.py index c84ef77..969b0b6 100644 --- a/rpmfile/headers.py +++ b/rpmfile/headers.py @@ -25,6 +25,7 @@ "md5": 269, "longsigsize": 270, "longarchivesize": 271, + "sha256": 273, "name": 1000, "version": 1001, "release": 1002, @@ -307,6 +308,19 @@ "autoinstalled": 5094, "identity": 5095, "modularitylabel": 5096, + "payloaddigestalt": 5097, + "archsuffix": 5098, + "spec": 5099, + "translationurl": 5100, + "upstreamreleases": 5101, + "sourcelicense": 5102, + "preuntrans": 5103, + "postuntrans": 5104, + "preuntransprog": 5105, + "postuntransprog": 5106, + "preuntransflags": 5107, + "postuntransflags": 5108, + "sysusers": 5109, } rtags = dict([(value, key) for (key, value) in tags.items()]) From e640de974c276baeae9d5692402f09d0b8dc8a6d Mon Sep 17 00:00:00 2001 From: John Andersen Date: Wed, 24 Jul 2024 14:55:10 -0700 Subject: [PATCH 2/2] Update rpmfile/headers.py --- rpmfile/headers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpmfile/headers.py b/rpmfile/headers.py index 488d1c4..77a9180 100644 --- a/rpmfile/headers.py +++ b/rpmfile/headers.py @@ -33,6 +33,9 @@ "filesignaturelength": 275, "veritysignatures": 276, "veritysignaturealgo": 277, +} + +tags = { "headerimage": 61, "headersignatures": 62, "headerimmutable": 63,