Bug 2217093 - dnf5 repoquery missing -C argument
Summary: dnf5 repoquery missing -C argument
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: rpm-software-management
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-23 20:25 UTC by Daniel Milnes
Modified: 2023-06-26 06:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-26 06:29:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Milnes 2023-06-23 20:25:56 UTC
The dnf5 version of dnf-repoquery does not currently support the -C/--cacheonly argument to "run entirely from system cache, don't update cache". This is breaking automation which calls the plugin, notably FedoraReview.

Reproducible: Always

Steps to Reproduce:
1. dnf install dnf5
2. dnf5 repoquery -C
Actual Results:  
Unknown argument "-C" for command "repoquery". Add "--help" for more information about the arguments.

Expected Results:  
dnf should perform repoquery using only its local cache.

I'm unsure if this is intentional or still being worked on. If the former, I'll raise a PR on FedoraReview to remove the argument.

Comment 1 Daniel Milnes 2023-06-23 20:34:44 UTC
This appears to be being tracked upstream as https://github.com/rpm-software-management/dnf5/issues/227.

Happy to close this if this is better tracked on GitHub.

Comment 2 Jan Kolarik 2023-06-26 06:29:31 UTC
Hello, yep, this is already tracked in upstream, so please watch for the changes there. I am actually planning to implement it this week, so hopefully it will be delivered quite soon.


Note You need to log in before you can comment on or make changes to this bug.