Mailinglist Archive: zypp-devel (149 mails)

< Previous Next >
Re: [zypp-devel] jippie - my pool gets listed! Q: nicer output ?
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Fri, 5 Sep 2008 14:14:57 +0200
  • Message-id: <20080905121457.GA27250@xxxxxxx>
On Fri, Sep 05, Jan-Simon M?ller wrote:

for item in pool:
print item.string() # e.g.
U__s_(213)cairo-doc-1.4.14-20.2.i586(software)
print item # e.g. <zypp.PoolItem; proxy of <Swig Object of
type 'zypp::PoolItem *' at 0x708860> >

# i had no idea how to proceed from here /me blind watching doxygen pages
and stuff like ^^^^^
# then i looked at satsolver and discovered
/tmp/a/var/cache/zypp/solv/software/solv
# so if someone could show me how to do this with libzypp - he would be my
hero of the day ;)

PoolItem combines Solvable and Status:

item.resolvable() // Type zypp::ResObject_Ptr

item.resolvable().name()
item.resolvable().edition()
.arch()
.provides()
.summary()
.description()
.repoInfo()
...

(see ResObject and Resolvable)



This is how it should work, but currently the bindings are messed up
again. ;( I can't check if it realy does.


--

cu,
Michael Andres

+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+

--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups