On Tue, 2017-02-28 at 11:36 -0500, Randy Barlow wrote:
Ooooh, one more idea I had that I think could be nice:
I had an idea last fall for a feature that could either be done in the
Bodhi CLI or as a dnf plugin that would allow users to install a Bodhi
update, or upgrade to a Bodhi update. The behavior of the two would be
slightly different: install would install all the subpackages found in
the update, where upgrade would only upgrade the subpackages that are
already installed on the client machine with the subpackages from the
update.
I think this would make testers lives a little easier, especially for
updates that have a lot of subpackages (like Gnome/KDE). I've not done
thorough asking-around to make sure something like this doesn't already
exist so I should do that, but it could be a fun and useful project.
Well, you can already do it with two commands. Bodhi 1.x:
1. bodhi -D (updateid)
2a. dnf update *.rpm
2b. dnf install *.rpm
Bodhi 2.x:
1. bodhi updates download --updateid (updateid)
2a. dnf update *.rpm
2b. dnf install *.rpm
You could in theory improve on this a bit for the 'update' case by only
downloading packages that would actually be involved in an update -
this would be a substantial help in a few cases, where there are
hundreds of subpackages in the update but you only need one or two.
However, this does get tricky because of renames: you can't just
download only packages that are already installed, you have to consider
packages that obsolete existing installed packages.
--
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net