mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 09:16:14 +01:00
- minor change
This commit is contained in:
parent
602abd7c1e
commit
44fbdc69f2
@ -277,16 +277,13 @@ class Serviceinfo:
|
|||||||
def readProjectFile(self, apiurl, project):
|
def readProjectFile(self, apiurl, project):
|
||||||
# download project wide _service file, we don't store it yet
|
# download project wide _service file, we don't store it yet
|
||||||
u = makeurl(apiurl, ['source', project, "_project", "_service"])
|
u = makeurl(apiurl, ['source', project, "_project", "_service"])
|
||||||
root = None
|
|
||||||
try:
|
try:
|
||||||
f = http_GET(u)
|
f = http_GET(u)
|
||||||
root = ET.parse(f).getroot()
|
root = ET.parse(f).getroot()
|
||||||
|
self.read(root, True)
|
||||||
except urllib2.HTTPError, e:
|
except urllib2.HTTPError, e:
|
||||||
if e.code != 404:
|
if e.code != 404:
|
||||||
raise e
|
raise e
|
||||||
if root:
|
|
||||||
self.read(root, True)
|
|
||||||
|
|
||||||
|
|
||||||
def addVerifyFile(self, serviceinfo_node, filename):
|
def addVerifyFile(self, serviceinfo_node, filename):
|
||||||
import hashlib
|
import hashlib
|
||||||
|
Loading…
Reference in New Issue
Block a user