diff options
author | 2009-10-12 23:20:33 +0200 | |
---|---|---|
committer | 2009-10-12 23:20:33 +0200 | |
commit | 8660365cc54b13025b6789cc6218870b3b611d65 (patch) | |
tree | c60a7232abecc1f1bdda0b71a836c27ee10490eb | |
parent | Sort repos for repositories.xml (diff) | |
download | repositories-xml-format-8660365cc54b13025b6789cc6218870b3b611d65.tar.gz repositories-xml-format-8660365cc54b13025b6789cc6218870b3b611d65.tar.bz2 repositories-xml-format-8660365cc54b13025b6789cc6218870b3b611d65.zip |
Multiply "generated file" note
-rwxr-xr-x | write-layman-global-txt.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/write-layman-global-txt.py b/write-layman-global-txt.py index bba6a7f..13649c0 100755 --- a/write-layman-global-txt.py +++ b/write-layman-global-txt.py @@ -60,6 +60,9 @@ for repo in repositories: for o in repo.findall(tag_name): repo.remove(o) + # Add note on file being a generated one + repo.insert(0, ET.Comment('NOTE: This file is generated, do not edit.')) + # Kill unsupported attributes for att_name in ('version', ): if att_name in repositories.attrib: @@ -68,8 +71,6 @@ for att_name in ('version', ): # Transform 'repositories' tag repositories.tag = 'overlays' -# Add note on file being a generated one -repositories.insert(0, ET.Comment('NOTE: This file is generated, do not edit directly.')) recurse_print(repositories) indent(repositories) |