[Treepkg-commits] r486 - trunk/recipes/kde/enterprise

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Nov 11 12:47:31 CET 2010


Author: bricks
Date: 2010-11-11 12:47:31 +0100 (Thu, 11 Nov 2010)
New Revision: 486

Modified:
   trunk/recipes/kde/enterprise/generic.py
Log:
fail if tag rules should be used and report error


Modified: trunk/recipes/kde/enterprise/generic.py
===================================================================
--- trunk/recipes/kde/enterprise/generic.py	2010-11-11 08:26:32 UTC (rev 485)
+++ trunk/recipes/kde/enterprise/generic.py	2010-11-11 11:47:31 UTC (rev 486)
@@ -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()



More information about the Treepkg-commits mailing list