Mailinglist Archive: opensuse-softwaremgmt (14 mails)

< Previous Next >
[softwaremgmt] YUM metadata design problems and missing info
  • From: Jan Kupec <jkupec@xxxxxxx>
  • Date: Tue, 22 May 2007 14:06:38 +0200
  • Message-id: <4652DCCE.5090004@xxxxxxx>
(posting also to zypp-devel, but pls. discuss it on opensuse-softwaremgmt)

First of all, if anyone can point me to an existing documentation of YUM
xml schemas WITH comments on semantics, please do so. What we have on
opensuse.org [1] and libzypp svn [2] is not enough (i will extend the
info with what i've learned so far ATP) and digging the code that
actually uses the data doesn't allways help.

Also, we should agree what should be an authoritative place for
specifications. The bare schema (rnc|rng|dtd) files are good for
validation, but not for exact specification and semantic docs. But if
commented, it would make a difference. Or should [1] be used? I'd vote
for comments inside RNCs with a link to them on wiki.


Some unclear things:

patch.rnc

- xml:base + href (anyURI)
  seems like we ignore xml:base attribute of all location data
  (not only in patch.xmls) and use just href as a relative path
  to a file on source URL. What about stating it somewhere in docs
  explicitly and dropping xml:base from suse extensions completely.
  Or start to support xml:base.

- update-script - what is it? is it a redundancy in addition
  to script atom?

- license-to-confirm (see bellow)

- rpm base attributes redundant?
  patchrpm and deltarpm elements both have attributes that seem not be
  used and redundant:

  - filename can be found in patchrpm/location[@href]?
  - downloadsize == patchrpm/size[@package]?
  - m5sum - isn't patchrpm/checksum enough?
  - buildtime == patchrpm/time[@build]?

- size attributes - we use them as follows:
  - package - rpm file size
  - installed - installed size - sum of unpackged contents
  - archive - ?


suse-primary.rnc

- license-to-confirm { localized-string }*

  this has multiplicity zero-or-more, but there is no way to tell
  particular translations apart except to rely on tag order, which is
  (by definition) undefined. Either we add an identifier to the tag
  or we add <licenses> tag to encapsulate them (or we remove the
  multiplicity).


Cheers,

Jano

[1] http://en.opensuse.org/Standards/Rpm_Metadata
[2] http://svn.opensuse.org/svn/zypp/trunk/libzypp/zypp/parser/yum/schema

-- 
To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-softwaremgmt+help@xxxxxxxxxxxx

< Previous Next >