FS#13964 - Uninstallable package's install reason can't be changed

Attached to Project: Pacman
Opened by Paolo (peoro) - Wednesday, 25 March 2009, 23:35 GMT
Last edited by Dan McGee (toofishes) - Wednesday, 15 April 2009, 04:21 GMT
Task Type General Gripe
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 3.2.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Summary and Info:
To set the Install Reason for a packet (using --asdeps or --asexplicit) it's needed to reinstall the package.
This shouldn't be necessary, and reinstalling an installed package is not always possible/easy to do.
This task depends upon

Closed by  Dan McGee (toofishes)
Wednesday, 15 April 2009, 04:21 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#12950 
Comment by Dan McGee (toofishes) - Saturday, 28 March 2009, 15:03 GMT
You can always go and tweak the database file to change the reason if truly necessary.

However, if the package is uninstallable, why does the reason even matter?
Comment by Paolo (peoro) - Saturday, 28 March 2009, 16:36 GMT
It doesn't matter if the package is uninstallable... The problem is when the package is non-reinstallable (because it's been removed from repos or because it's been installed from a URL, with -U).

I'm afraid of manually tweaking the database, and I think pacman should be able to do it (since it supports the --asdeps and --asexplicit parameters).
Comment by Nagy Gabor (combo) - Monday, 13 April 2009, 22:34 GMT
Well, this is straightforward to implement, and I support the idea.

If someone suggest me good pacman switches, I will provide a patch for this. ;-) (I think we need a new main operation, -D/--database for example).