[Yum-devel] Re: [yum-cvs] yum/misc.py
seth vidal
skvidal at fedoraproject.org
Fri Dec 7 22:09:36 UTC 2007
On Fri, 2007-12-07 at 16:54 -0500, Seth Vidal wrote:
> yum/misc.py | 53 +++++++++++++++++++++++++++++++----------------------
> 1 file changed, 31 insertions(+), 22 deletions(-)
>
> New commits:
> commit 33a13b05dc231fa46f23a25f0c321c3da9934f3b
> Author: Seth Vidal <skvidal at fedoraproject.org>
> Date: Fri Dec 7 16:53:49 2007 -0500
>
> add misc.find_unfinished_transactions() - makes it easier to deal with multiple
> unfinished transactions.
okay this code means you can call:
list_of_transaction_timestamps = yum.misc.find_unfinished_transactions()
my_timestamp = list_of_transaction_timestamps[-1]# latest one
ts_elements = find_ts_remaining(my_timestamp)
for (action, pkgspec) in ts_elements:
if action == 'install':
self.install(pattern=pkgspec)
if action == 'remove':
self.remove(pattern=pkgspec) # hmmm remove() doesn't take
pattern for what appears to be stupid reasons /me makes a note
etc.
So my question is - where should the calling of this go? Into a
yum-util? like package-cleanup or something of its own? Into yum proper
with a subcommand or maybe an automatic event ("I see you have an
aborted transaction.....")
Thoughts?
-sv
More information about the Yum-devel
mailing list