1 |
Hello, everyone. |
2 |
|
3 |
I've finished the GLEP 67 transition last night, and it officially |
4 |
applies to all metadata.xml files now. |
5 |
|
6 |
In order to have repoman apply it correct (and not throw errors on new |
7 |
metadata.xml files), it needs to refetch metadata.dtd. Sadly, this |
8 |
currently happens once a week, so it's better to remove the file |
9 |
manually to force refetch: |
10 |
|
11 |
rm "$(portageq envvar DISTDIR)"/metadata.dtd |
12 |
|
13 |
Please note that the metadata.dtd is unable to correctly enforce |
14 |
obligatory type="" attribute on maintainers. Please make sure to add |
15 |
it. I will be adding pkgcheck/repoman checks for that soon. |
16 |
|
17 |
If you'd like to convert your own repository, you can reuse the herdfix |
18 |
tool [1]. It's pretty dumb, and can work with any repository: |
19 |
|
20 |
git clone https://bitbucket.org/mgorny/herdfix/ |
21 |
cd herdfix |
22 |
# note: this will fetch all data, including ssh-ing to d.g.o |
23 |
# to get developer list from /etc/passwd |
24 |
make |
25 |
./01-pre-clean.py /repo/path |
26 |
./03-clean-maint-needed.py /repo/path |
27 |
./02-herdfix.py /repo/path herd-mapping.json |
28 |
./04-set-type.py /repo/path projects.xml dev.names |
29 |
|
30 |
01-pre-clean.py is optional and useful only if you want to separately |
31 |
commit quoting changes to avoid mixing them in with other changes. |
32 |
|
33 |
03-clean-maint-needed.py is probably unnecessary since it just updates |
34 |
maintainer-needed@g.o packages. I doubt you find them often in custom |
35 |
repositories. |
36 |
|
37 |
02-herdfix.py is the meat grinder replacing herds with projects. Useful |
38 |
only if you used <herd/> in your repository (which you shouldn't have |
39 |
been). |
40 |
|
41 |
04-set-type.py sets type="" on all <maintainer/>s. It uses |
42 |
type="project" for anything found in projects.xml, type="person" |
43 |
otherwise. |
44 |
|
45 |
[1]:https://bitbucket.org/mgorny/herdfix/ |
46 |
|
47 |
-- |
48 |
Best regards, |
49 |
Michał Górny |
50 |
<http://dev.gentoo.org/~mgorny/> |