From 5fc3effb174ff6e9fbfd05346134ac8861477884 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Fri, 30 Dec 2011 09:50:05 -0500 Subject: added SimpleConfig plugin for easy config files; made Packages and Rules use SimpleConfig; made regex in rules off by default, but configurable in rules.conf --- src/lib/Server/Plugins/Packages/Source.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/Server/Plugins/Packages/Source.py') 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: -- cgit v1.2.3-1-g7c22