From 58e8c0badfb2c4c78f1cf80653c03e646193cefd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serdar=20Dalg=C4=B1=C3=A7?= Date: Tue, 15 Dec 2009 22:27:29 +0000 Subject: [PATCH] Warn if component.xml is not found in the upper directory, Tag the source as a part of unknown component. --- pisi/operations/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pisi/operations/build.py b/pisi/operations/build.py index 315c6726..fe744321 100644 --- a/pisi/operations/build.py +++ b/pisi/operations/build.py @@ -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)