build: Cosmetic change
Yes, I don't like big "if" blocks.
This commit is contained in:
@@ -434,7 +434,9 @@ class Builder:
|
||||
pisi.file.File.download(uri, transferdir)
|
||||
|
||||
def fetch_component(self):
|
||||
if not self.spec.source.partOf:
|
||||
if self.spec.source.partOf:
|
||||
return
|
||||
|
||||
ctx.ui.info(_('PartOf tag not defined, looking for component'))
|
||||
diruri = util.parenturi(self.specuri.get_uri())
|
||||
parentdir = util.parenturi(diruri)
|
||||
|
||||
Reference in New Issue
Block a user