Mailinglist Archive: zypp-devel (84 mails)

< Previous Next >
Re: [zypp-devel] repodata.c - clarification
  • From: Michael Matz <matz@xxxxxxx>
  • Date: Thu, 21 Aug 2008 14:51:16 +0200 (CEST)
  • Message-id: <Pine.LNX.4.64.0808211445350.6093@xxxxxxxxxxxxx>
Hi,

On Thu, 21 Aug 2008, Roberto Mannai wrote:

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?

IIRC currently the detailed diskusage (per directory) is only supported
for the susetags format (i.e. the install repositories), not for the rpmmd
(XML based) repositories. There is work underway in current SVN to
support also diskusage for the XML repositories (e.g. the update repo and
all buildservice repos are of that type), but I'm not sure how complete
that is.

But for one solv file either _all_ packages should have that attribute or
none should have it. Otherwise that would be a bug.

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).

It's not totally useless IMHO. Even in the absense of the diskusage
attribute you still can know the overall installsize (you just don't know
where exactly that space will be used). You could for instance attribute
the whole installsize to the partition that holds /usr . Not ideal of
course, but still something.

(but yes, in the future, eventually, all packages will have a diskusage
attribute).


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

< Previous Next >
Follow Ups