Bug 1446641
Summary: | dnf repoquery --duplicates --latest-limit -1 -q does not work | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dennis Gilmore <dennis> |
Component: | dnf-plugins-core | Assignee: | rpm-software-management |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 26 | CC: | jmracek, packaging-team-maint, rpm-software-management, samuel.rakitnican, vedran, vmukhame |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-05-14 20:19:41 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dennis Gilmore
2017-04-28 13:31:06 UTC
The problem here is with argparser. Value -1 is recognized as a option not a value. There are some workaround: 1. --latest-limit=-1 2. --latest-limit " -1" I create a pull request that only describe work around, but not solve a problem. Unfortunately we cannot do more. Pull-request: https://github.com/rpm-software-management/dnf/pull/801 *** Bug 1428015 has been marked as a duplicate of this bug. *** dnf-2.4.1-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-e0fa49ff81 dnf-2.4.1-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-e0fa49ff81 dnf-2.4.1-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. *** Bug 1467293 has been marked as a duplicate of this bug. *** Seems that I had dnf-2.4.1-1.fc26 installed when the upgrade failed mentioned in bug #1467293, yet I still got the same error when trying to use -1 as an argument. Definitely does not work for me, please retest and reopen this bug. $ rpm -q dnf dnf-plugins-core dnf-2.5.1-1.fc26.noarch dnf-plugins-core-2.1.1-1.fc26.noarch $ sudo dnf repoquery --duplicates --latest-limit -1 > /dev/null Command line error: argument --latest-limit: expected one argument Sorry, didn't see it is not possible to fix this in current release. In a sense that is described in comment #2 it is fixed for me as well. --latest-limit <number> Limit the resulting set to <number> of latest packages for every package name and architecture. If <number> is negative skip <number> of latest packages. If negative number is used use syn‐ tax --latest-limit=<number>. *** Bug 1467293 has been marked as a duplicate of this bug. *** |