diff options
author | 2009-09-30 18:21:05 +0200 | |
---|---|---|
committer | 2009-09-30 18:21:05 +0200 | |
commit | b08abe89f9a6dcebdd40a0acdd9dc7b9c653e8f4 (patch) | |
tree | 7dcc7706106afd053a7f43be35c3f97dc8c48eb4 /write-layman-global-txt.py | |
parent | Add language support to <description> (diff) | |
download | repositories-xml-format-b08abe89f9a6dcebdd40a0acdd9dc7b9c653e8f4.tar.gz repositories-xml-format-b08abe89f9a6dcebdd40a0acdd9dc7b9c653e8f4.tar.bz2 repositories-xml-format-b08abe89f9a6dcebdd40a0acdd9dc7b9c653e8f4.zip |
Fix off-by-one
Diffstat (limited to 'write-layman-global-txt.py')
-rwxr-xr-x | write-layman-global-txt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/write-layman-global-txt.py b/write-layman-global-txt.py index 2b84a3d..1974838 100755 --- a/write-layman-global-txt.py +++ b/write-layman-global-txt.py @@ -44,7 +44,7 @@ for repo in repositories: for description in repo.findall('description'): if 'lang' in description.attrib.keys(): if description.attrib['lang'] not in ('C', 'en') or \ - descriptions_kept > 1: + descriptions_kept > 0: repo.remove(description) else: del description.attrib['lang'] |