FS#60106 - Versioned optdepends shown as installed even with version mismatch

Attached to Project: Pacman
Opened by Tinu Weber (ayekat) - Tuesday, 18 September 2018, 13:45 GMT
Last edited by Eli Schwartz (eschwartz) - Friday, 11 October 2019, 19:44 GMT
Task Type Bug Report
Category Output
Status Closed
Assigned To Eli Schwartz (eschwartz)
Architecture All
Severity Low
Priority Normal
Reported Version 5.1.1
Due in Version 5.2.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

In the output of `pacman -Qi`, the "Optional Deps" line marks optional
dependencies as [installed] even if the version does not match.


Steps to Reproduce:

1. Build a dummy package that depends on a bogus version of something
that is installed, e.g.

pkgname=dummypkg
pkgver=0.1
pkgrel=1
arch=(any)
optdepends=('coreutils=1.1')

2. Install the package and check the output of `pacman -Qi`, e.g.:

Name: dummypkg
...
Optional Deps: coreutils=1.1 [installed]
...

Interestingly, `pacman -Qi` correctly shows that coreutils is not
optionally required by this dummypkg (it does show it if the version
matches), and pacman also does not mark coreutils=1.1 as [installed]
during the installation; it seems to be uniquely the `pacman -Qi`
output.
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Friday, 11 October 2019, 19:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  https://git.archlinux.org/pacman.git/com mit/?id=3318039e3b1530396b0e3ced49ea6fe5 b6ea00c5

Loading...