summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2009-10-10 10:04:16 +0200
committerSebastian Pipping <sebastian@pipping.org>2009-10-10 10:04:16 +0200
commitea1fb88a81972b2b6957badb1abb32b506a24c88 (patch)
tree635a245dcc663a97e373c12725dd6371ac8f6a47 /write-repositories-xml.py
parentAdd support for Gentoo infra's XSL wrapping (diff)
downloadrepositories-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-xwrite-repositories-xml.py5
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)