Mercurial > treepkg
diff recipes/kde/enterprise/generic.py @ 522:7af344f9e704
set the correct tags_rules_pattern if not provided in the config
kw.pop with a default value doesn't work with empty strings
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Thu, 11 Nov 2010 08:26:32 +0000 |
parents | 452c5670ec6b |
children | 10a7fed8bf80 |
line wrap: on
line diff
--- a/recipes/kde/enterprise/generic.py Wed Nov 10 16:48:03 2010 +0000 +++ b/recipes/kde/enterprise/generic.py Thu Nov 11 08:26:32 2010 +0000 @@ -71,12 +71,14 @@ tags_pattern = kw.pop("tags_pattern") tags_subdir = kw.pop("tags_subdir") tags_rules_url = kw.pop("tags_rules_url") - tags_rules_pattern = kw.pop("tags_rules_pattern", tags_pattern) + tags_rules_pattern = kw.pop("tags_rules_pattern") tags_rules_subdir = kw.pop("tags_rules_subdir") tags_scm_type = kw.pop("tags_scm_type") tags_rules_scm_type = kw.pop("tags_rules_scm_type") super(PackageTrack, self).__init__(*args, **kw) + if not tags_rules_pattern: + tags_rules_pattern = tags_pattern if not tags_scm_type: tags_scm_type = self.scm_type if not tags_rules_scm_type: