From 04f9be06570880eb7b5970b111755d6703ec72b3 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Wed, 3 Nov 2010 14:43:18 +0100 Subject: Wrap GetResolvablesToInsDel --- examples/python/install_updates_dryrun.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'examples') diff --git a/examples/python/install_updates_dryrun.py b/examples/python/install_updates_dryrun.py index 05e7c72..ba1a134 100755 --- a/examples/python/install_updates_dryrun.py +++ b/examples/python/install_updates_dryrun.py @@ -44,6 +44,18 @@ for item in Z.pool(): if item.status().transacts(): print '%s | %s-%s | %s' % (item.repoInfo().alias(), item.name(), item.edition(), item.status() ) + +# +# +# +print '====================================================' +todo = zypp.GetResolvablesToInsDel( Z.pool() ) +for item in todo._toDelete: + print '-- %s | %s-%s | %s' % (item.repoInfo().alias(), item.name(), item.edition(), item.status() ) + +for item in todo._toInstall: + print '++ %s | %s-%s | %s' % (item.repoInfo().alias(), item.name(), item.edition(), item.status() ) + # # dryRun! # -- cgit v1.2.3