Skip to content

Commit

Permalink
Add changes
Browse files Browse the repository at this point in the history
Signed-off-by: Divya Madala <[email protected]>
  • Loading branch information
Divyaasm committed Sep 11, 2024
1 parent 22bf1b1 commit 5a2f916
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/validation_workflow/rpm/validation_rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ def validate_metadata(self, product_type: str) -> None:
meta_map = {}
for line in stdout.split('\n'):
key = line.split(':')[0].strip()
if key != 'Description':
if key != 'Description' && 'URL':
meta_map[key] = line.split(':', 2)[1].strip()
print(line.split(':', 2)[1].strip())
logging.info(meta_map[key])
print(meta_map)
else:
description_index = stdout.find(line)
print(stdout[description_index + len(line):].strip())
meta_map[key] = stdout[description_index + len(line):].strip()
logging.info(meta_map[key])
print(meta_map)
Expand Down

0 comments on commit 5a2f916

Please sign in to comment.