diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-05-24 20:16:14 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-05-24 20:16:14 (GMT) |
commit | 2a9e353bbaa73caf3e35064def8641dd1ca0bcad (patch) | |
tree | fc73f65e94ae29ca4e2fd43cfd9d1dc419363bc3 | |
parent | 7b18df70a8bf2d59d5c702eff52e6d8cb9cb9c4c (diff) |
Compare with string not list
-rw-r--r-- | changesources.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/changesources.py b/changesources.py index e65f543..b8765fd 100644 --- a/changesources.py +++ b/changesources.py @@ -26,7 +26,7 @@ def setup(c, config): def codebaseGenerator(change_dict): repository = change_dict["repository"] - if repository.split("/")[:-1] == "sugar-build": + if repository.split("/")[-1] == "sugar-build": return "sugar-build" else: return repos.get_by_url(repository).name |