aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2015-04-20 13:11:25 -0400
committerDevan Franchini <twitch153@gentoo.org>2015-04-20 13:11:29 -0400
commit155056d851373a3415faedc6c00faae04e9b48b1 (patch)
treeae41247bf076c7495356f494d2b0d2d3d4ef571e /layman/config_modules
parentlayman.8.txt: Adds more details on how --protocol_filter flag should be used (diff)
downloadlayman-155056d851373a3415faedc6c00faae04e9b48b1.tar.gz
layman-155056d851373a3415faedc6c00faae04e9b48b1.tar.bz2
layman-155056d851373a3415faedc6c00faae04e9b48b1.zip
reposconf.py: Adds proper disabling of overlays when option is "ALL"
X-Gentoo-Bug: 546852 X-Gentoo-Bug-URL: https://bugs.gentoo.org/546852
Diffstat (limited to 'layman/config_modules')
-rw-r--r--layman/config_modules/reposconf/reposconf.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/layman/config_modules/reposconf/reposconf.py b/layman/config_modules/reposconf/reposconf.py
index a57c87e..1f0fd04 100644
--- a/layman/config_modules/reposconf/reposconf.py
+++ b/layman/config_modules/reposconf/reposconf.py
@@ -194,9 +194,11 @@ class ConfigHandler:
# start over with a fresh instance
self.repo_conf = ConfigParser.ConfigParser()
if not self.repo_conf.sections():
- for i in sorted(self.overlays):
- if not i == delete:
- self.add(self.overlays[i], no_write=True)
+ if ('disable' in self.config.keys() and not
+ self.config['disable'][0].lower() == 'all'):
+ for i in sorted(self.overlays):
+ if not i == delete:
+ self.add(self.overlays[i], no_write=True)
self.repo_conf.write(laymanconf)
self.rebuild = False
return True