diff options
author | Devan Franchini <twitch153@gentoo.org> | 2015-02-04 21:48:33 -0500 |
---|---|---|
committer | Devan Franchini <twitch153@gentoo.org> | 2015-02-04 21:48:33 -0500 |
commit | a8aee27d23032ac743d9fd55a2ed1c39a271ca43 (patch) | |
tree | ea70384d544068ab5898291207a11a9abceb3620 | |
parent | updater.py: Allows more leniency when breaking up conf_type from layman.cfg (diff) | |
download | layman-a8aee27d23032ac743d9fd55a2ed1c39a271ca43.tar.gz layman-a8aee27d23032ac743d9fd55a2ed1c39a271ca43.tar.bz2 layman-a8aee27d23032ac743d9fd55a2ed1c39a271ca43.zip |
reposconf.py: Adds toggle for auto-sync if sync plugin is not installed
-rw-r--r-- | layman/config_modules/reposconf/reposconf.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layman/config_modules/reposconf/reposconf.py b/layman/config_modules/reposconf/reposconf.py index 4cb27f8..fa75dc6 100644 --- a/layman/config_modules/reposconf/reposconf.py +++ b/layman/config_modules/reposconf/reposconf.py @@ -98,6 +98,8 @@ class ConfigHandler: self.repo_conf.set(overlay.name, 'branch', overlay.sources[0].branch) if sync_type: #To maintain a desired structure, we have to do this check twice. self.repo_conf.set(overlay.name, 'auto-sync', self.config['auto_sync']) + else: + self.repo_conf.set(overlay.name, 'auto-sync', 'No') return self.write() |