Skip to content

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

Open
glehmann wants to merge 1 commit into
masterfrom
gln/srpm-url-source-qxor
Open

import_srpm: allow to pass a url as source file#740
glehmann wants to merge 1 commit into
masterfrom
gln/srpm-url-source-qxor

Conversation

@glehmann

@glehmann glehmann commented Aug 4, 2025

Copy link
Copy Markdown
Member

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
Comment thread scripts/import_srpm.py
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
Copy Markdown
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
Copy Markdown
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
@stormi

stormi commented Oct 24, 2025

Copy link
Copy Markdown
Member

@glehmann ready for re-review?

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
@glehmann glehmann force-pushed the gln/srpm-url-source-qxor branch from 09f205c to 40a9d07 Compare March 12, 2026 10:05
@stormi

stormi commented Jun 24, 2026

Copy link
Copy Markdown
Member

@glehmann you pushed after my last question but didn't answer nor ask for a re-review. Thus the PR stalled. What's the current status?

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