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

repoquery --location doesn't work for repositories specified as a local directory without file:// schema #2048

Open
praiskup opened this issue Feb 9, 2025 · 2 comments
Labels
Priority: MEDIUM Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take

Comments

@praiskup
Copy link
Member

praiskup commented Feb 9, 2025

dnf5-5.2.8.1-3.fc41.x86_64

11:47:00 ~/rh/projects/prunerepo/subdir$ dnf-3 repoquery --repofrompath=prunerepo_query,`pwd` --disablerepo='*' --enablerepo prunerepo_query  --location 
Added prunerepo_query repo from /home/praiskup/rh/projects/prunerepo/subdir
Last metadata expiration check: 0:04:33 ago on ne 9. února 2025, 11:42:45.
file:///home/praiskup/rh/projects/prunerepo/subdir/08628183-mock-core-configs/mock-core-configs-42.1.test-1.git.3876.fcbc293.fc43.noarch.rpm
...
11:47:18 ~/rh/projects/prunerepo/subdir$ dnf repoquery --repofrompath=prunerepo_query,`pwd` --disablerepo='*' --enablerepo prunerepo_query  --location 
Updating and loading repositories:
Repositories loaded.

Location is supposed to work since #589.
This isn't #1889 - root doesn't help.
Relates: fedora-copr/copr#3615

@praiskup praiskup changed the title The --location / %location doesn't produce output The --location / %location doesn't work with local files Feb 9, 2025
@praiskup
Copy link
Member Author

praiskup commented Feb 9, 2025

Online locations seem to be displayed fine:

$ dnf repoquery --repofrompath=prunerepo_query,`pwd`  --location  --quiet bash
http://ftp.sh.cvut.cz/fedora/linux/releases/41/Everything/x86_64/os/Packages/b/bash-5.2.32-1.fc41.x86_64.rpm

@praiskup praiskup changed the title The --location / %location doesn't work with local files repoquery --location / %location doesn't work with local files Feb 9, 2025
@ppisar
Copy link
Contributor

ppisar commented Feb 10, 2025

I confirm this issue.

Workaround is specifying the repository location with file:// schema, like --repofrompath=prunerepo_query,file://pwd.

@ppisar ppisar changed the title repoquery --location / %location doesn't work with local files repoquery --location doesn't work for repositories specified as a local directory without file:// schema Feb 10, 2025
@ppisar ppisar added Priority: MEDIUM Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take labels Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: MEDIUM Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take
Projects
None yet
Development

No branches or pull requests

2 participants