summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Packages/Source.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-01-13 08:09:22 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-01-13 08:09:22 -0500
commit238f6446d09ca8e3b7a082876920922ee1eda4d2 (patch)
tree7a59ba455180c9950631334180af64ba68eeadee /src/lib/Server/Plugins/Packages/Source.py
parent8c9b825595174455242b3b2f6ca96ddcbdcfff2e (diff)
parentb6654dd316f9cd4f6a6673a89cdd48cc1b38b82a (diff)
downloadbcfg2-238f6446d09ca8e3b7a082876920922ee1eda4d2.tar.gz
bcfg2-238f6446d09ca8e3b7a082876920922ee1eda4d2.tar.bz2
bcfg2-238f6446d09ca8e3b7a082876920922ee1eda4d2.zip
merged branch rules_regex
Diffstat (limited to 'src/lib/Server/Plugins/Packages/Source.py')
-rw-r--r--src/lib/Server/Plugins/Packages/Source.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/Server/Plugins/Packages/Source.py b/src/lib/Server/Plugins/Packages/Source.py
index 72c7a4bfd..dbb510053 100644
--- a/src/lib/Server/Plugins/Packages/Source.py
+++ b/src/lib/Server/Plugins/Packages/Source.py
@@ -257,9 +257,8 @@ class Source(object):
if not found_arch:
return False
- if (self.config.has_section("global") and
- self.config.has_option("global", "magic_groups") and
- self.config.getboolean("global", "magic_groups") == False):
+ if self.config.getboolean("global", "magic_groups",
+ default=True) == False:
return True
else:
for group in self.basegroups: