Skip to content

Conversation

glehmann
Copy link
Member

@glehmann glehmann commented Aug 4, 2025

This way we don't even have to manually download the srpm.

@glehmann glehmann requested review from stormi and ydirson August 4, 2025 14:18
source_rpm = args.source_rpm
if is_url(source_rpm):
# get the src.rpm locally, and continue with the actual file
local_filename = f'/tmp/{os.path.basename(source_rpm)}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use a temporary directory known not to conflict with anything

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And it could also self-destroy at the end, as python's tempfile (IIRC) allows?

@glehmann glehmann force-pushed the gln/srpm-url-source-qxor branch from 72275f4 to 09f205c Compare August 11, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants