Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#20221 - Installing a group with --needed and a package in multiple repos fails on the needed part
Attached to Project:
Pacman
Opened by Allan McRae (Allan) - Monday, 19 July 2010, 13:32 GMT
Last edited by Allan McRae (Allan) - Tuesday, 24 August 2010, 13:36 GMT
Opened by Allan McRae (Allan) - Monday, 19 July 2010, 13:32 GMT
Last edited by Allan McRae (Allan) - Tuesday, 24 August 2010, 13:36 GMT
|
DetailsSummary and Info:
The use of --needed partially fails when trying to install a group which has one package in two repos. The package version from the first repo is recognised as installed and removed from the list, but the second version of the package is "not installed" (as the version number is different?) and it not removed from the software that is needed to be installed. Similarly, when the package version from the second repo is installed, the version of the package from the first repo is flagged despite using --needed. Is --needed using pkgname-pkgver-pkgrel matching rather than just pkgname? > pacman -S --needed base base-devel <snip> Targets (18): ... autoconf-2.65-2 ... <snip> > pacman -S --needed autoconf warning: autoconf-2.66-2 is up to date -- skipping there is nothing to do > pacman -Ss autoconf testing/autoconf 2.66-2 (base-devel) [installed] A GNU tool for automatically configuring source code core/autoconf 2.65-2 (base-devel) [installed: 2.66-2] A GNU tool for automatically configuring source code > pacman -Qs autoconf local/autoconf 2.66-2 (base-devel) A GNU tool for automatically configuring source code |
This task depends upon
Closed by Allan McRae (Allan)
Tuesday, 24 August 2010, 13:36 GMT
Reason for closing: Fixed
Additional comments about closing: git commits e702f56e and f8d7cd6b
Tuesday, 24 August 2010, 13:36 GMT
Reason for closing: Fixed
Additional comments about closing: git commits e702f56e and f8d7cd6b
I think we need to make this logic a bit smarter and not use the targets list directly, but some other list we build up as we go that can include both targets (those packages getting installed) and non-targets (those we found but decided to skip in the case of needed). We could also change the return semantics slightly so a different code is returned when a package is found but skipped or something.