diff options
author | Michael Andres <ma@suse.de> | 2010-11-03 14:43:18 +0100 |
---|---|---|
committer | Michael Andres <ma@suse.de> | 2010-11-03 14:43:18 +0100 |
commit | 04f9be06570880eb7b5970b111755d6703ec72b3 (patch) | |
tree | ab1ceb2327e291e3d63041aa22240dd46506a4da /examples/python | |
parent | 587f9df64f20e88fe76e0a08b9ac6526e53c8a54 (diff) | |
download | libzypp-bindings-04f9be06570880eb7b5970b111755d6703ec72b3.tar.gz libzypp-bindings-04f9be06570880eb7b5970b111755d6703ec72b3.tar.bz2 libzypp-bindings-04f9be06570880eb7b5970b111755d6703ec72b3.zip |
Wrap GetResolvablesToInsDel
Diffstat (limited to 'examples/python')
-rwxr-xr-x | examples/python/install_updates_dryrun.py | 12 |
1 files changed, 12 insertions, 0 deletions
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! # |