Skip to content

import_srpm: allow to pass a url as source file #740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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