From 44fbdc69f2bf0a7111bfb354248c7fe86f8c969c Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Wed, 26 Jan 2011 18:07:42 +0100 Subject: [PATCH] - minor change --- osc/core.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/osc/core.py b/osc/core.py index 977ceb24..2f44eb71 100644 --- a/osc/core.py +++ b/osc/core.py @@ -277,16 +277,13 @@ class Serviceinfo: def readProjectFile(self, apiurl, project): # download project wide _service file, we don't store it yet u = makeurl(apiurl, ['source', project, "_project", "_service"]) - root = None try: f = http_GET(u) root = ET.parse(f).getroot() + self.read(root, True) except urllib2.HTTPError, e: if e.code != 404: raise e - if root: - self.read(root, True) - def addVerifyFile(self, serviceinfo_node, filename): import hashlib