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

Repo without any source is silently ignored with skip_if_unavailable=1 #2064

Open
kontura opened this issue Feb 14, 2025 · 0 comments
Open
Labels
Priority: LOW Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take

Comments

@kontura
Copy link
Contributor

kontura commented Feb 14, 2025

Given an empty.repo configured as:

[empty]
name=empty
enabled=1
gpgcheck=0

(there is no baseurl, mirrorlist or metalink)

Running:

$ dnf5 makecache --refresh --repo empty --setopt=skip_if_unavailable=1
Updating and loading repositories:
Repositories loaded.
Metadata cache created.

It would be nice to let the user know the enabled repo wasn't updated, similarly to dnf4:

$ dnf4 makecache --refresh --repo empty --setopt=skip_if_unavailable=1
Error: Cannot find a valid baseurl for repo: empty
Ignoring repositories: empty
Metadata cache created.

This is tested in https://github.com/rpm-software-management/ci-dnf-stack/blob/main/dnf-behave-tests/dnf/repo-sync.feature

@kontura kontura added Priority: LOW Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take labels Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: LOW 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

1 participant