FS#23424 - Do not report versions with -Rd
Attached to Project:
Pacman
Opened by Allan McRae (Allan) - Friday, 25 March 2011, 04:41 GMT
Last edited by Dan McGee (toofishes) - Monday, 28 March 2011, 01:51 GMT
Opened by Allan McRae (Allan) - Friday, 25 March 2011, 04:41 GMT
Last edited by Dan McGee (toofishes) - Monday, 28 March 2011, 01:51 GMT
|
Details
Summary and Info:
Currently both "pacman -R foo" and "pacman -Rd foo" show the version when outputting dependency issues. e.g. > pacman -Rd filesystem checking dependencies... error: failed to prepare transaction (could not satisfy dependencies) :: dbus-core: requires filesystem :: fakeroot: requires filesystem :: hal: requires filesystem>=0.7.1-5 :: mkinitcpio: requires filesystem>=2009.01-2 :: util-linux: requires filesystem With -Rd the version comparison (e.g. with hal and mkinitcpio above) should be omitted from the output. |
This task depends upon
Closed by Dan McGee (toofishes)
Monday, 28 March 2011, 01:51 GMT
Reason for closing: Fixed
Additional comments about closing: Commit 68701a98aff46821e7e
Monday, 28 March 2011, 01:51 GMT
Reason for closing: Fixed
Additional comments about closing: Commit 68701a98aff46821e7e
http://code.toofishes.net/cgit/dan/pacman.git/log/?id=68701a98aff4
compute_dep_string is used by local_db_write.
Stripping all dep version information for new/upgraded packages sounds a bit weird.
That's why the compute_dep_string patch we had on the ML some times ago was either never applied, or reverted (don't remember exactly).
Second less important question : whats the impact of strict or tolerant depcmp in resolvedep ?
Second question. strict/tolerant are no more, so let's call it filtered vs. unfiltered here. resolvedep() is called in two places:
* alpm_find_dbs_satisfier(): we have zero guarantee of being in a transaction here, so we can't use tolerant/filtered behavior in any sort of consistent fashion unless this is a flag on the handle or the call to this function.
* _alpm_resolvedeps(): Called as a very early step in sync_prepare, we still want to pull as many matching dependencies as possible, unless I'm thinking wrong. Even if we do these with versions attached, you still have the opportunity later to actually check the list without versions when checkdeps as called. There was no test case to bust this solution, so until one is provided I don't believe I caused any regressions.
About resolvedep, I agree that it does not matter until we find a test case.