Implement -Y/--prune-install option to bring an installation into a known state
commit2e6cf467b2f59bcab4796bf1126944c81244e930
authorAchim Gratz <Stromeko@Stromeko.DE>
Sat, 9 May 2015 18:25:43 +0000 (9 20:25 +0200)
committerAchim Gratz <Stromeko@Stromeko.DE>
Sat, 1 Aug 2015 15:39:00 +0000 (1 17:39 +0200)
tree7cf9fe3cb62735ad68791d972d651de9cca5207c
parente993e2449417ab6f1c559b3fedc239bdb1e0a485
Implement -Y/--prune-install option to bring an installation into a known state

* choose.cc (PruneInstallOption): New option -Y/--prune-install.
(OnInit): Implement PruneInstallOption to downgrade packages
installed with a higher version and delete all packages not
explicitly requested to be installed.  This brings an existing
installation to the same state a fresh installation would create.
Put the handling for upgrade==true into a separate else branch.
ChangeLog
choose.cc