[Yum-devel] [PATCH] Save where we downloaded the file from, in an xattr (requires pyxattr).

James Antill james at fedoraproject.org
Mon Dec 6 19:10:05 UTC 2010


On Mon, 2010-12-06 at 13:55 -0500, Jon Masters wrote:
> On Mon, 2010-12-06 at 10:40 -0500, James Antill wrote:
> 
> > +            # Set the URL where we got it from:
> > +            if xattr is not None:
> > +                xattr.set(self.filename, 'user.url', self.url)
> > +
> 
> Is there any kind of standard naming/tagging for this in other
> distributions? Should there be?

 s/distributions/software/

 I'd looked at this a few years ago, and there didn't seem to be any
kind of std. work going on ... even when the "local search" apps. (like
beagle) made a splash and they all wanted to store the same kinds of
stuff.
 But, having another look now I see:

http://www.freedesktop.org/wiki/CommonExtendedAttributes
http://curl.haxx.se/mail/archive-2010-11/0009.html

...and while I can't find anything else using the xdg spec. (google
codesearch just shows curl) the curl patch appears to have been
committed. So using user.xdg.origin.url instead is fine by me.



More information about the Yum-devel mailing list