FS#35812 - pacman should print replaces with "pacman -Sup"

Attached to Project: Pacman
Opened by lieven moors (lievenmoors) - Sunday, 16 June 2013, 10:00 GMT
Last edited by Allan McRae (Allan) - Thursday, 05 May 2016, 03:53 GMT
Task Type General Gripe
Category General
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 4.1.1
Due in Version 5.1.0
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

I use the command "pacman -Sup" to get the updates for a computer without internet. But it doesn't deal with replaces. I heard --noconfirm is implied when you use the "--print". So in my opinion it would make sense that "pacman -Sup" would print out _all_ the packages that would have been downloaded with "pacman -Syu --noconfirm" (assuming the database files are up-to-date). That would mean it would print out replaces and new dependencies of those as well.
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 05 May 2016, 03:53 GMT
Reason for closing:  Implemented
Additional comments about closing:  git commit 3ed57be4
Comment by Allan McRae (Allan) - Sunday, 16 June 2013, 10:10 GMT
My guess is this is easily fixed by extending https://projects.archlinux.org/pacman.git/commit/?id=ee3b
Comment by lieven moors (lievenmoors) - Friday, 27 December 2013, 20:26 GMT
Isn't that patch returning a default response of 0 for any events that is not ALPM_QUESTION_INSTALL_IGNOREPKG,
when running in --print mode? Wouldn't that overide the alpm defaults for all other events? Also, I would be interested
to know where or how those alpm default values would be set...

Sorry, I'm not at all familiar with the pacman codebase, so any help would be appreciated.
Comment by Allan McRae (Allan) - Tuesday, 29 March 2016, 06:42 GMT
  • Field changed: Percent Complete (0% → 100%)

Loading...