Merge pull request #33 from aplanas/master

Fix bug from this morning
This commit is contained in:
Stephan Kulow 2013-09-27 08:38:25 -07:00
commit 0d04d88272

View File

@ -320,12 +320,12 @@ def memoize(ttl=None):
@memoize()
def build(apiurl, project, repo, arch, package):
root = None
try:
url = makeurl(apiurl, ['build', project, repo, arch, package])
root = http_GET(url).read()
except urllib2.HTTPError, e:
print 'ERROR in URL %s [%s]'%(url, e)
return False
return root
@ -416,7 +416,9 @@ def _check_repo_fetch_group(self, opts, group):
def _check_repo_avoid_wrong_friends(self, prj, repo, arch, pkg, opts):
root = ET.fromstring(build(opts.apiurl, prj, repo, arch, pkg))
xml = build(opts.apiurl, prj, repo, arch, pkg)
if xml:
root = ET.fromstring(xml)
for binary in root.findall('binary'):
# if there are binaries, we're out
return False