Re: Correct .doap file syntax for the <name> tag



On 2013-08-20 21:23, Shaun McCance <shaunm gnome org> wrote:
On Wed, 2013-08-21 at 00:15 +0200, Andrea Veri wrote:
I noticed that many repositories are not using the <name> tag
correctly into the respective .doap files. The <name> tag should
possibly match the repository name (i.e gnome-shell.git -->
gnome-shell, gnome-user-docs.git --> gnome-user-docs) for two main
reasons:

That's not how the rest of the world uses the name property. If you
want the location of the repository, that's what the location property
of the Repository class is for. Or use a custom property in our DOAP
extension namespace.

I just made a change to add the repository information to the Cheese DOAP file:

https://git.gnome.org/browse/cheese/commit/?id=ba6f9e564cc828d197bf89a7d71e7ea697fb3132

It is a few more lines than using the name property, but has the benefit that other public clones of the repository have the upstream git location included.

Looking at the mirror script, it seems that using the DOAP name property for the repository name can be avoided entirely. I filed a bug about this, with a patch:

https://bugzilla.gnome.org/show_bug.cgi?id=706562

--
http://amigadave.com/

Attachment: signature.asc
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]