euscan: minor fixes
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
parent
0d6376681f
commit
d7bf130fda
@ -251,6 +251,7 @@ def main():
|
|||||||
on_progress(maxval=len(queries) * 100, increment=0)
|
on_progress(maxval=len(queries) * 100, increment=0)
|
||||||
|
|
||||||
for query in queries:
|
for query in queries:
|
||||||
|
if CONFIG["progress"]:
|
||||||
on_progress(increment=10, label=query)
|
on_progress(increment=10, label=query)
|
||||||
|
|
||||||
ret = []
|
ret = []
|
||||||
|
@ -35,11 +35,13 @@ def scan(cpv, url):
|
|||||||
# now create a filename-matching regexp
|
# now create a filename-matching regexp
|
||||||
# XXX: supposedly replace first with (?P<foo>...)
|
# XXX: supposedly replace first with (?P<foo>...)
|
||||||
# and remaining ones with (?P=foo)
|
# and remaining ones with (?P=foo)
|
||||||
fnre = re.compile('^%s$' % re.escape(filename).replace(re.escape(ver), '(.*?)'))
|
fnre = re.compile('^%s$' % \
|
||||||
|
re.escape(filename).replace(re.escape(ver), '(.*?)'))
|
||||||
|
|
||||||
output.einfo("Using github API for: " + '/'.join(package))
|
output.einfo("Using github API for: " + '/'.join(filename))
|
||||||
|
|
||||||
dlreq = urllib2.urlopen('https://api.github.com/repos/%s/%s/downloads' % (user, project))
|
dlreq = urllib2.urlopen('https://api.github.com/repos/%s/%s/downloads' % \
|
||||||
|
(user, project))
|
||||||
dls = json.load(dlreq)
|
dls = json.load(dlreq)
|
||||||
|
|
||||||
for dl in dls:
|
for dl in dls:
|
||||||
|
Loading…
Reference in New Issue
Block a user