# HG changeset patch # User Bjoern Ricks # Date 1289463992 0 # Node ID 7af344f9e70453c85ceb67cef5a6aa2ac97ca029 # Parent d26642ed6afa43365c9b914492aedcf01f0551d2 set the correct tags_rules_pattern if not provided in the config kw.pop with a default value doesn't work with empty strings diff -r d26642ed6afa -r 7af344f9e704 recipes/kde/enterprise/generic.py --- 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: