Bug 2160420 - dnf5-specs(7) does not mention relations (name > version) and rich dependencies
Summary: dnf5-specs(7) does not mention relations (name > version) and rich dependencies
Keywords:
Status: CLOSED COMPLETED
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Kolarik
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-12 11:25 UTC by Petr Pisar
Modified: 2023-06-29 12:25 UTC (History)
4 users (show)

Fixed In Version: dnf5-5.0.8-1.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-29 12:25:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2023-01-12 11:25:41 UTC
It seems that dnf5 understands a package specification with a version relation:

# dnf5 --disablerepo=rawhide --enablerepo=f38-build install 'rpm > 4'
Updating and loading repositories:
Repositories loaded.
Package "rpm-4.18.0-9.fc38.x86_64" is already installed.

Nothing to do.

# dnf5 --disablerepo=rawhide --enablerepo=f38-build install 'rpm < 4'
Updating and loading repositories:
Repositories loaded.
Failed to resolve the transaction:
No match for argument: rpm < 4

But this feature is not documented in dnf5-specs(7) manual. The same probably applies to rich dependencies:

# dnf5 --disablerepo=rawhide --enablerepo=f38-build install '(rpm > 4 with rpm < 5)'
Updating and loading repositories:
Repositories loaded.
Nothing to do.
# dnf5 --disablerepo=rawhide --enablerepo=f38-build install '(rpm > 5 with rpm < 4)'
Updating and loading repositories:
Repositories loaded.
Failed to resolve the transaction:
No match for argument: (rpm > 5 with rpm < 4)

Observed in dnf5-5.0.1-1.fc38.x86_64.

Comment 1 Ben Cotton 2023-02-07 15:05:18 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 2 Jan Kolarik 2023-03-30 10:37:05 UTC
Following PR was queued to fix this: https://github.com/rpm-software-management/dnf5/pull/415.


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