diff options
author | 2010-04-11 20:39:27 +0200 | |
---|---|---|
committer | 2010-04-11 20:39:27 +0200 | |
commit | fcb2515a9238871e9e84d7d7ffa848ac6cf481af (patch) | |
tree | bad9d599ef5c6e22c96150b211a28f00299793bd | |
parent | gitosis.conf differ: make it work with user overlays, introduce repo_name map... (diff) | |
download | repositories-xml-format-fcb2515a9238871e9e84d7d7ffa848ac6cf481af.tar.gz repositories-xml-format-fcb2515a9238871e9e84d7d7ffa848ac6cf481af.tar.bz2 repositories-xml-format-fcb2515a9238871e9e84d7d7ffa848ac6cf481af.zip |
Fix unintended name clash
-rwxr-xr-x | diff-gitosis-conf-against-repositories-xml.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/diff-gitosis-conf-against-repositories-xml.py b/diff-gitosis-conf-against-repositories-xml.py index 4152485..124ed1c 100755 --- a/diff-gitosis-conf-against-repositories-xml.py +++ b/diff-gitosis-conf-against-repositories-xml.py @@ -104,14 +104,14 @@ for section_name in gitosis_conf.sections(): _repo_base = section_name[len('repo '):].strip() try: - owner_type, gitosis_repo_name = _repo_base.split('/') + owner_part, gitosis_repo_name = _repo_base.split('/') except (ValueError) as e: # TODO print NOT_AN_OVERLAY_MESSAGE % gitosis_repo_name continue - if owner_type == 'proj': + if owner_part == 'proj': owner_type = "project" - elif owner_type in ('dev', 'user'): + elif owner_part in ('dev', 'user'): owner_type = "person" else: # TODO print NOT_AN_OVERLAY_MESSAGE % gitosis_repo_name |