diff options
author | Michael Andres <ma@suse.de> | 2008-09-05 16:43:40 +0000 |
---|---|---|
committer | Michael Andres <ma@suse.de> | 2008-09-05 16:43:40 +0000 |
commit | c6fcfe47d295c4c8dabc469836fd6f4e87bbe529 (patch) | |
tree | 2c691fe1594ab99030eb49ad705dd8143549d7b5 /examples/python | |
parent | 743e0c0f0eb1aa853b24322e46c78bc7b981c14d (diff) | |
download | libzypp-bindings-c6fcfe47d295c4c8dabc469836fd6f4e87bbe529.tar.gz libzypp-bindings-c6fcfe47d295c4c8dabc469836fd6f4e87bbe529.tar.bz2 libzypp-bindings-c6fcfe47d295c4c8dabc469836fd6f4e87bbe529.zip |
Fix basic resolvabe attributes as needed by list_resolvables.py example.
Diffstat (limited to 'examples/python')
-rwxr-xr-x | examples/python/list_resolvables.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/examples/python/list_resolvables.py b/examples/python/list_resolvables.py index 69c3b7e..7654737 100755 --- a/examples/python/list_resolvables.py +++ b/examples/python/list_resolvables.py @@ -2,7 +2,6 @@ import zypp Z = zypp.ZYppFactory_instance().getZYpp() - Z.initializeTarget( zypp.Pathname("/") ) Z.target().load(); @@ -16,7 +15,6 @@ for repo in repos: repoManager.buildCache( repo ) repoManager.loadFromCache( repo ); - print "Items: %d" % ( Z.pool().size() ) for item in Z.pool(): @@ -24,9 +22,9 @@ for item in Z.pool(): t = "i" else: t = "*" - print "%s %s" % ( t , item.resolvable()) - #print "%s %s:%s-%s.%s\t(%s)" % ( t, - # item.resolvable().kind(), - ## item.resolvable().edition(), - # item.resolvable().arch(), - # item.resolvable().repository().info().alias() ) + print "%s %s:%s-%s.%s\t(%s)" % ( t, + item.kind(), + item.name(), + item.edition(), + item.arch(), + item.repoInfo().alias() ) |