Skip to content

Commit

Permalink
Fixed intermittent issues with releases on Travis by connection to Gi…
Browse files Browse the repository at this point in the history
…thub API through proxy
  • Loading branch information
gornostal committed Oct 2, 2018
1 parent 1676aae commit e3a4919
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions build-utils/aur-update.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,10 @@ def main():


def fetch_release():
print "Fetching releases from Github..."
response = urllib2.urlopen('https://api.github.com/repos/ulauncher/ulauncher/releases')
releases = json.load(response)
try:
return (r for r in releases if r['tag_name'] == version).next()
except StopIteration:
print "ERROR: Satisfiable release version %s not found" % version
sys.exit(1)
url = 'https://ext-api.ulauncher.io/misc/ulauncher-releases/%s' % version
print "Fetching release info from '%s'..." % url
response = urllib2.urlopen(url)
return json.load(response)


def get_targz_link():
Expand Down

0 comments on commit e3a4919

Please sign in to comment.