add missing whitespace to please linter
This commit is contained in:
parent
a0b805038f
commit
a9709dd958
@ -243,18 +243,18 @@ class FreezeCommand(object):
|
|||||||
targeturl = self.api.makeurl(['source', self.prj, '000release-packages', 'weakremovers.inc'],
|
targeturl = self.api.makeurl(['source', self.prj, '000release-packages', 'weakremovers.inc'],
|
||||||
{'comment': 'Update weakremovers.inc'})
|
{'comment': 'Update weakremovers.inc'})
|
||||||
oldinc = osc.core.http_GET(targeturl).read()
|
oldinc = osc.core.http_GET(targeturl).read()
|
||||||
targeturl_exists=True
|
targeturl_exists = True
|
||||||
except HTTPError:
|
except HTTPError:
|
||||||
targeturl_exists=False
|
targeturl_exists = False
|
||||||
try:
|
try:
|
||||||
sourceurl = self.api.makeurl(['source', self.api.project, '000release-packages', 'weakremovers.inc'])
|
sourceurl = self.api.makeurl(['source', self.api.project, '000release-packages', 'weakremovers.inc'])
|
||||||
inc = osc.core.http_GET(sourceurl).read()
|
inc = osc.core.http_GET(sourceurl).read()
|
||||||
sourceurl_exists=True
|
sourceurl_exists = True
|
||||||
except HTTPError:
|
except HTTPError:
|
||||||
sourceurl_exists=False
|
sourceurl_exists = False
|
||||||
if targeturl_exists != sourceurl_exists:
|
if targeturl_exists != sourceurl_exists:
|
||||||
raise Exception("weakremover.inc doesn't exist in both Staging and Parent project, please fix")
|
raise Exception("weakremover.inc doesn't exist in both Staging and Parent project, please fix")
|
||||||
if not(targeturl_exists) and not(sourceurl_exists):
|
if not (targeturl_exists) and not (sourceurl_exists):
|
||||||
# nothing to do
|
# nothing to do
|
||||||
return
|
return
|
||||||
if inc != oldinc:
|
if inc != oldinc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user