GNOME Bugzilla – Bug 706562
DOAP name property should not be used for repository name
Last modified: 2013-08-22 10:10:42 UTC
Created attachment 252708 [details] [review] only use the name property as a description fallback The DOAP name property is the name of the project: https://github.com/edumbill/doap/blob/master/schema/doap.rdf The github mirror script uses the name property as the repository name, which causes problems when the name property does not match the repository name (which is perfectly legitimate). This can be avoided by using the repository property in the DOAP file: <repository> <GitRepository> <location rdf:resource="git://git.gnome.org/cheese" /> <browse rdf:resource="https://git.gnome.org/browse/cheese/" /> </GitRepository> </repository> or by using the (already known) repository name directly in the mirror script. Attached is a patch which uses the repository name that is already known, and only uses the name property as a fallback for the github repository description. I have not tested the patch, and I do not known Python well, so please let me know if any changes are needed.
That GitRepository is what all the other scripts use. See https://git.gnome.org/repositories.doap
Hi David, this looks sane to me, I've just tested your patch and everything seems to work as expected. It's actually simpler and easier to just look for the directory itself as found in the /git tree instead of parsing another doap file. Thanks for working on it!