aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoger Chui <chui101@gmail.com>2012-06-14 06:27:52 (GMT)
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-06-15 18:56:01 (GMT)
commitf6b192b02977206fe3d8faceaa724fd581da212b (patch)
treefad39e96347290f6cc54b444f8acc10d2f5d09d2
parent79f9818d282743c98b3859d38b196d5a3cd14203 (diff)
downloadandroid_build-gb-release-7.2.zip
android_build-gb-release-7.2.tar.gz
android_build-gb-release-7.2.tar.bz2
make compatible with github v3 apigb-release-7.2
Change-Id: Iff6f1f9099cdc5d2b49e04000b5fe3d04aa5d7e4
-rwxr-xr-xtools/roomservice.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/roomservice.py b/tools/roomservice.py
index 61f8555..352e547 100755
--- a/tools/roomservice.py
+++ b/tools/roomservice.py
@@ -13,10 +13,11 @@ repositories = []
page = 1
while True:
- result = json.loads(urllib2.urlopen("http://github.com/api/v2/json/repos/show/CyanogenMod?page=%d" % page).read())
- if len(result['repositories']) == 0:
+ result = json.loads(urllib2.urlopen("https://api.github.com/users/CyanogenMod/repos?page=%d" % page).read())
+ if len(result) == 0:
break
- repositories = repositories + result['repositories']
+ for res in result:
+ repositories.append(res)
page = page + 1
for repository in repositories: