FS#48252 - multiple packages can satisfy dependency range restriction

Attached to Project: Pacman
Opened by Dominik Fischer (XZS) - Friday, 19 February 2016, 17:08 GMT
Task Type Bug Report
Category Backend/Core
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 5.0.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 4
Private No

Details

In specifying

depends=('dependency>=3' 'dependency<=4')

a package writer usually intends to express that pacman should only allow a package to be installed when there is another package present that provides a version of "dependency" between 3 and 5. However, current pacman instead allows both restrictions to be satisfied by different packages, for example, one providing "dependency=2" and another one providing "dependency=5".

A test for the expected behavior was already brought up via the mailing list [1] and merged into the repository. When the XFAIL on test/pacman/tests/deprange001.py turns into a PASS, this bug can be considered resolved.

[1]: https://lists.archlinux.org/pipermail/pacman-dev/2015-December/020639.html
This task depends upon

Loading...