diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2009-10-10 10:04:16 +0200 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2009-10-10 10:04:16 +0200 |
commit | ea1fb88a81972b2b6957badb1abb32b506a24c88 (patch) | |
tree | 635a245dcc663a97e373c12725dd6371ac8f6a47 /write-repositories-xml.py | |
parent | Add support for Gentoo infra's XSL wrapping (diff) | |
download | repositories-xml-format-ea1fb88a81972b2b6957badb1abb32b506a24c88.tar.gz repositories-xml-format-ea1fb88a81972b2b6957badb1abb32b506a24c88.tar.bz2 repositories-xml-format-ea1fb88a81972b2b6957badb1abb32b506a24c88.zip |
Add "this file is generated" notes to each overlay, not just the whole file
Diffstat (limited to 'write-repositories-xml.py')
-rwxr-xr-x | write-repositories-xml.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/write-repositories-xml.py b/write-repositories-xml.py index 184c040..8db3a08 100755 --- a/write-repositories-xml.py +++ b/write-repositories-xml.py @@ -103,14 +103,15 @@ for overlay in overlays: if 'quality' not in overlay.attrib: overlay.attrib['quality'] = 'experimental' + # Add note on file being a generated one + overlay.insert(0, ET.Comment('NOTE: This file is generated, do not edit.')) + # Transform 'overlays' tag overlays.tag = 'repositories' # Extend by format version overlays.attrib['version'] = '1.0' -# Add note on file being a generated one -overlays.insert(0, ET.Comment('NOTE: This file is generated, do not edit directly.')) recurse_print(overlays) |