diff options
author | Pedro Ângelo <pangelo@void.io> | 2013-02-15 23:41:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-02-27 20:29:18 -0800 |
commit | f860707c4d962e0f8e6aecdf24caa4e132696a2b (patch) | |
tree | 825ac2094ff1ad8c30fe9914788185e21607691a /tools | |
parent | cc7b143b3d1026b87f93d92e6d02c117955b4d0a (diff) | |
download | build-f860707c4d962e0f8e6aecdf24caa4e132696a2b.zip build-f860707c4d962e0f8e6aecdf24caa4e132696a2b.tar.gz build-f860707c4d962e0f8e6aecdf24caa4e132696a2b.tar.bz2 |
Fix fallback branch search in roomservice
If you provided a fallback branch to roomservice via the
ROOMSERVICE_BRANCHES environment var the branch search would fail
if the device repo had any tags.
Fixed this by appending the tag search results to the branch
search results instead of overwriting them
Change-Id: I73a11af1500bd04e346f08ec3f83454502f3a169
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/roomservice.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/roomservice.py b/tools/roomservice.py index 8276d76..d23ce2a 100755 --- a/tools/roomservice.py +++ b/tools/roomservice.py @@ -225,7 +225,7 @@ else: if not has_branch(result, default_revision): githubreq = urllib2.Request(repository['tags_url'].replace('{/tag}', '')) add_auth(githubreq) - result = json.loads(urllib2.urlopen(githubreq).read()) + result.extend (json.loads(urllib2.urlopen(githubreq).read())) repo_path = "device/%s/%s" % (manufacturer, device) adding = {'repository':repo_name,'target_path':repo_path} |