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:
Serdar Dalgıç
2009-12-15 22:27:29 +00:00
parent fbb358f965
commit 58e8c0badf
+3 -1
View File
@@ -365,7 +365,9 @@ class Builder:
path = pisi.util.join_path(self.pkg_work_dir(), 'component.xml')
else:
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
comp = component.CompatComponent()
comp.read(path)