[Rpm-metadata] files listings

Joe Shaw joe at ximian.com
Wed Oct 22 15:58:58 UTC 2003


On Wed, 2003-10-22 at 00:39, seth vidal wrote:
> but how to uniquely id the packages - should we use the package
> checksum? or would nevra be sufficient, or maybe just the filename as it
> is listed in the metadata file.

I think nevra is sufficient.

> <package someidentifier attribute>
>   <file>/some/file/name</file>
>   <file type='dir'>/some/dir</file>
> </package>

I personally prefer this one... feels cleaner and there isn't a syntatic
difference between directories and files.

On a related note (and one that we've run into in Red Carpet): How do we
deal with files that are in an unspecified encoding?  In RC we just drop
any files which aren't UTF-8 encoded, betting on the fact that probably
no RPMs depend on one of those files.  Hasn't bit us yet, and seems like
it'll be less of an issue going forward as distributions move all this
to UTF-8.  (On a related note, it'd be nice of RPM 4.3 or whatever
enforced UTF-8 filenames, as it is The One True Way)

Joe




More information about the Rpm-metadata mailing list