summaryrefslogtreecommitdiff
path: root/examples/python
diff options
context:
space:
mode:
authorMichael Andres <ma@suse.de>2010-11-03 14:43:18 +0100
committerMichael Andres <ma@suse.de>2010-11-03 14:43:18 +0100
commit04f9be06570880eb7b5970b111755d6703ec72b3 (patch)
treeab1ceb2327e291e3d63041aa22240dd46506a4da /examples/python
parent587f9df64f20e88fe76e0a08b9ac6526e53c8a54 (diff)
downloadlibzypp-bindings-04f9be06570880eb7b5970b111755d6703ec72b3.tar.gz
libzypp-bindings-04f9be06570880eb7b5970b111755d6703ec72b3.tar.bz2
libzypp-bindings-04f9be06570880eb7b5970b111755d6703ec72b3.zip
Wrap GetResolvablesToInsDel
Diffstat (limited to 'examples/python')
-rwxr-xr-xexamples/python/install_updates_dryrun.py12
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!
#