Skip to content
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

Downloaded filename wrong #40

Open
hramrach opened this issue Jan 25, 2023 · 3 comments
Open

Downloaded filename wrong #40

hramrach opened this issue Jan 25, 2023 · 3 comments

Comments

@hramrach
Copy link

When I run osc service run download_files in a package that specifies source-1.0.0.tar.gz as source I get _service:download_files:source-1.0.0.tar.gz. I cannot build the package, it's broken.

@tacerus
Copy link
Member

tacerus commented Apr 5, 2023

I encounter this as well.

@dirkmueller
Copy link
Member

I can not reproduce. is this still an issue? which version? I have 0.9.2

@tacerus
Copy link
Member

tacerus commented Nov 19, 2023

Hi @dirkmueller,

example .spec contents:

...
Source:         https://files.pythonhosted.org/packages/source/r/requests-oauthlib/requests-oauthlib-%{version}.tar.gz
...
%setup -q -n requests-oauthlib-%{version}
...

If I recall correctly, the issue is with using

<service name="download_files" mode="disabled">

in _service - when running osc service run -v download_files it places a file

_service:download_files:requests-oauthlib-1.3.1.tar.gz

which it deletes during a osc build --local-package - and also the build fails with

[    5s] + /usr/lib/rpm/rpmuncompress -x /home/abuild/rpmbuild/SOURCES/requests-oauthlib-1.3.1.tar.gz
[    5s] error: File /home/abuild/rpmbuild/SOURCES/requests-oauthlib-1.3.1.tar.gz: No such file or directory

if on the other hand

<service name="download_files" mode="localonly">

is used, the file _service:download_files:requests-oauthlib-1.3.1.tar.gz is replaced with requests-oauthlib-1.3.1.tar.gz upon calling osc build ..., and the build succeeds.

Edit: I have obs-service-download_files-0.9.2-1.2.noarch installed.

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

No branches or pull requests

3 participants