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

"osc gebinaries" prints downloaded packages percent-quoted #1650

Closed
mwilck opened this issue Oct 31, 2024 · 2 comments · Fixed by #1661
Closed

"osc gebinaries" prints downloaded packages percent-quoted #1650

mwilck opened this issue Oct 31, 2024 · 2 comments · Fixed by #1661
Labels

Comments

@mwilck
Copy link
Contributor

mwilck commented Oct 31, 2024

osc getbinaries unnecessarily percent-escapes the + character in its log output, making the filenames hardly readable.

Observed:

> osc getbinaries -d /tmp/x standard x86_64
_buildenv
_statistics
kpartx-0.10.0%2B106%2Bsuse.ffbdb7a-150700.3.1.x86_64.rpm
libdmmp-devel-0.10.0%2B106%2Bsuse.ffbdb7a-150700.3.1.x86_64.rpm
libdmmp0_2_0-0.10.0%2B106%2Bsuse.ffbdb7a-150700.3.1.x86_64.rpm
libmpath0-0.10.0%2B106%2Bsuse.ffbdb7a-150700.3.1.x86_64.rpm
multipath-tools-0.10.0%2B106%2Bsuse.ffbdb7a-150700.3.1.x86_64.rpm
multipath-tools-devel-0.10.0%2B106%2Bsuse.ffbdb7a-150700.3.1.x86_64.rpm
rpmlint.log

Expected:

> osc getbinaries -d /tmp/x standard x86_64
_buildenv
_statistics
kpartx-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
libdmmp-devel-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
libmpath0-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
multipath-tools-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
multipath-tools-devel-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
rpmlint.log

The actual file names are correct, they're just logged by "getbinaries" in this way. osc ls -b also prints correct file names.

> osc ls -b -r standard -a x86_64
_buildenv
_statistics
kpartx-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
kpartx-debuginfo-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
libdmmp-devel-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
libdmmp0_2_0-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
libdmmp0_2_0-debuginfo-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
libmpath0-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
libmpath0-debuginfo-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
multipath-tools-0.10.0+106+suse.ffbdb7a-150700.3.1.src.rpm
multipath-tools-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
multipath-tools-debuginfo-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
multipath-tools-debugsource-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm
multipath-tools-devel-0.10.0+106+suse.ffbdb7a-150700.3.1.x86_64.rpm

Versions

  • OpenSUSE tumbleweed
  • Packages: osc-1.9.2-1.1.noarch

Steps to reproduce the behavior:
Should happen with any package using + in the version number.
Examples are multipath-tools and dracut.

Expected behavior
See above

@dmach
Copy link
Contributor

dmach commented Nov 11, 2024

@mwilck the linked PR fixes this and there's also a bonus!
(Let me know how you like the disappearing progressbar after the download completes)

@mwilck
Copy link
Contributor Author

mwilck commented Nov 12, 2024

Thanks! I don't care too much about the progress bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants