Mailinglist Archive: zypp-devel (84 mails)
| < Previous | Next > |
Re: [zypp-devel] repodata.c - clarification
- From: "Roberto Mannai" <robermann@xxxxxxxxx>
- Date: Thu, 21 Aug 2008 00:22:24 +0200
- Message-id: <414e44f70808201522t35fc01e3x48c2d7a389ebe96b@xxxxxxxxxxxxxx>
Hi Michael
On Wed, Aug 20, 2008 at 4:18 PM, Michael Matz <matz@xxxxxxx> wrote:
So is it checking if exist the attribute "solvable:diskusage" ?
I just used dumpsolv, thanks for the clarification. I was assuming
that all packages have the "diskusage" attribute: why only some
packages have it? Does it depend on some rpm tag?
BTW, if not all packages have the diskusage attribute, my patch is
quite useless :) (at least as a tooltip on the disk usage bar (so
per-partition size) on the package selector widget).
Ciao
Roberto Mannai
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
On Wed, Aug 20, 2008 at 4:18 PM, Michael Matz <matz@xxxxxxx> wrote:
That's simply searching if this attribute (the one with keyname) exists
for the solvable in question. If it returns here it means for that
solvable this attribute doesn't exist.
So is it checking if exist the attribute "solvable:diskusage" ?
You should look at the metadata (use dumpsolv on the solv file in
/var/cache/zypp/solv/$REPO/solv for the repository in question). For
diskusage it needs to have the "solvable:diskusage" attributes (that's per
directory, if you need that per mount-point you need to call some helper
functions, e.g. pool_calc_duchanges) or simply "solvable:installsize"
(that's the overall installed size of the package), for that no
post-processing is required.
I just used dumpsolv, thanks for the clarification. I was assuming
that all packages have the "diskusage" attribute: why only some
packages have it? Does it depend on some rpm tag?
BTW, if not all packages have the diskusage attribute, my patch is
quite useless :) (at least as a tooltip on the disk usage bar (so
per-partition size) on the package selector widget).
Ciao
Roberto Mannai
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |