public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] GLEP 67 is in, please update your metadata.dtd!
@ 2016-01-25  9:37 Michał Górny
  2016-01-25 10:12 ` Andrew Savchenko
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Michał Górny @ 2016-01-25  9:37 UTC (permalink / raw
  To: gentoo-dev-announce; +Cc: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1821 bytes --]

Hello, everyone.

I've finished the GLEP 67 transition last night, and it officially
applies to all metadata.xml files now.

In order to have repoman apply it correct (and not throw errors on new
metadata.xml files), it needs to refetch metadata.dtd. Sadly, this
currently happens once a week, so it's better to remove the file
manually to force refetch:

  rm "$(portageq envvar DISTDIR)"/metadata.dtd

Please note that the metadata.dtd is unable to correctly enforce
obligatory type="" attribute on maintainers. Please make sure to add
it. I will be adding pkgcheck/repoman checks for that soon.

If you'd like to convert your own repository, you can reuse the herdfix
tool [1]. It's pretty dumb, and can work with any repository:

  git clone https://bitbucket.org/mgorny/herdfix/
  cd herdfix
  # note: this will fetch all data, including ssh-ing to d.g.o
  # to get developer list from /etc/passwd
  make
  ./01-pre-clean.py /repo/path
  ./03-clean-maint-needed.py /repo/path
  ./02-herdfix.py /repo/path herd-mapping.json
  ./04-set-type.py /repo/path projects.xml dev.names

01-pre-clean.py is optional and useful only if you want to separately
commit quoting changes to avoid mixing them in with other changes.

03-clean-maint-needed.py is probably unnecessary since it just updates
maintainer-needed@g.o packages. I doubt you find them often in custom
repositories.

02-herdfix.py is the meat grinder replacing herds with projects. Useful
only if you used <herd/> in your repository (which you shouldn't have
been).

04-set-type.py sets type="" on all <maintainer/>s. It uses
type="project" for anything found in projects.xml, type="person"
otherwise.

[1]:https://bitbucket.org/mgorny/herdfix/

-- 
Best regards,
Michał Górny
<http://dev.gentoo.org/~mgorny/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 949 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-01-26 21:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-25  9:37 [gentoo-dev] GLEP 67 is in, please update your metadata.dtd! Michał Górny
2016-01-25 10:12 ` Andrew Savchenko
2016-01-25 16:31 ` Luis Ressel
2016-01-25 18:22   ` Mike Gilbert
2016-01-25 18:45     ` [gentoo-dev] " Martin Vaeth
2016-01-25 18:59       ` Alec Warner
2016-01-25 20:05       ` Mike Gilbert
2016-01-26 21:44 ` [gentoo-dev] Re: [gentoo-dev-announce] " Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox