From a26ca8a4e27b8f3a4b6c94e1e1b3b6008e59751c Mon Sep 17 00:00:00 2001 From: Divya Madala Date: Mon, 9 Sep 2024 09:50:36 -0700 Subject: [PATCH] Test rpm metadata changes Signed-off-by: Divya Madala --- src/validation_workflow/rpm/validation_rpm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/validation_workflow/rpm/validation_rpm.py b/src/validation_workflow/rpm/validation_rpm.py index 5636488f0b..33e814d10d 100644 --- a/src/validation_workflow/rpm/validation_rpm.py +++ b/src/validation_workflow/rpm/validation_rpm.py @@ -112,6 +112,8 @@ def validate_signature(self) -> None: (_, stdout, _) = execute(f'rpm -K -v {os.path.join(self.tmp_dir.path, self.filename)}', ".") logging.info(stdout) print(type(stdout)) + newline_count = stdout.count('\n') + print(newline_count) key_list = ["Header V4 RSA/SHA512 Signature, key ID 9310d3fc", "Header SHA256 digest", "Header SHA1 digest", "Payload SHA256 digest", "V4 RSA/SHA512 Signature, key ID 9310d3fc", "MD5 digest"] present_key = [] for line in stdout.split('\n'):