Warn if component.xml is not found in the upper directory,
Tag the source as a part of unknown component.
This commit is contained in:
@@ -365,7 +365,9 @@ class Builder:
|
|||||||
path = pisi.util.join_path(self.pkg_work_dir(), 'component.xml')
|
path = pisi.util.join_path(self.pkg_work_dir(), 'component.xml')
|
||||||
else:
|
else:
|
||||||
if not os.path.exists(url):
|
if not os.path.exists(url):
|
||||||
raise Exception(_('Cannot find component.xml in upper directory'))
|
ctx.ui.warning(_('Cannot find component.xml in upper directory, Source is now part of unknown component'))
|
||||||
|
self.spec.source.partOf = 'unknown'
|
||||||
|
return
|
||||||
path = url
|
path = url
|
||||||
comp = component.CompatComponent()
|
comp = component.CompatComponent()
|
||||||
comp.read(path)
|
comp.read(path)
|
||||||
|
|||||||
Reference in New Issue
Block a user