changeset 523:10a7fed8bf80

fail if tag rules should be used and report error
author Bjoern Ricks <bricks@intevation.de>
date Thu, 11 Nov 2010 11:47:31 +0000
parents 7af344f9e704
children e90a21cfbc3b
files recipes/kde/enterprise/generic.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/recipes/kde/enterprise/generic.py	Thu Nov 11 08:26:32 2010 +0000
+++ b/recipes/kde/enterprise/generic.py	Thu Nov 11 11:47:31 2010 +0000
@@ -116,7 +116,10 @@
         logging.info("Found: %s: %s", tag_url, tag_revision)
         logging.info("Found rules: %s: %s", tag_rules_url, tag_rules_revision)
         if self.use_tag_rules and tag_rules_url is None:
-            self.use_tag_rules = False # maybe it's better to raise an exception
+            self.use_tag_rules = False
+            logging.error("No rules found in tag but tag should be used to" \
+                          " build package.")
+            return
         if tag_url is not None:
             if not self.use_tag_rules:
                 tag_rules_revision = self.rules_working_copy.last_changed_revision()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)