Beispiel #1
0
 def _check_config(self):
     # Tag names cannot contain spaces
     tag = self.config_obj.options.get('tag', '')
     if ' ' in tag:
         raise e.RepositoryConfigurationError(
             """You specified "'tag': {}". Tag names cannot contain spaces""".format(tag))
     if re.match("^\d+$", tag):
         raise e.RepositoryConfigurationError(
             """You specified "'tag': {}". Tag names cannot be just digits""".format(tag))
Beispiel #2
0
 def _check_config(self):
     # Tag names cannot contain spaces
     tag = self.config_obj.options.get('tag', '')
     if ' ' in tag:
         raise e.RepositoryConfigurationError(
             """You specified "'tag': {}".""".format(tag) +
             "Tag names cannot contain spaces")