Mercurial > treepkg
comparison recipes/kde/enterprise/generic.py @ 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 | e73a4bbc35e7 |
comparison
equal
deleted
inserted
replaced
522:7af344f9e704 | 523:10a7fed8bf80 |
---|---|
114 tag_url, tag_revision = self.tag_detector.newest_tag_revision() | 114 tag_url, tag_revision = self.tag_detector.newest_tag_revision() |
115 tag_rules_url, tag_rules_revision = self.tag_rules_detector.newest_tag_revision() | 115 tag_rules_url, tag_rules_revision = self.tag_rules_detector.newest_tag_revision() |
116 logging.info("Found: %s: %s", tag_url, tag_revision) | 116 logging.info("Found: %s: %s", tag_url, tag_revision) |
117 logging.info("Found rules: %s: %s", tag_rules_url, tag_rules_revision) | 117 logging.info("Found rules: %s: %s", tag_rules_url, tag_rules_revision) |
118 if self.use_tag_rules and tag_rules_url is None: | 118 if self.use_tag_rules and tag_rules_url is None: |
119 self.use_tag_rules = False # maybe it's better to raise an exception | 119 self.use_tag_rules = False |
120 logging.error("No rules found in tag but tag should be used to" \ | |
121 " build package.") | |
122 return | |
120 if tag_url is not None: | 123 if tag_url is not None: |
121 if not self.use_tag_rules: | 124 if not self.use_tag_rules: |
122 tag_rules_revision = self.rules_working_copy.last_changed_revision() | 125 tag_rules_revision = self.rules_working_copy.last_changed_revision() |
123 revision = (tag_revision, tag_rules_revision) | 126 revision = (tag_revision, tag_rules_revision) |
124 logging.info("New revision is %s", revision) | 127 logging.info("New revision is %s", revision) |