diff options
author | 2015-02-04 12:13:40 -0500 | |
---|---|---|
committer | 2015-02-04 12:13:40 -0500 | |
commit | 2094523aed86c80894bf97f7cc7366cda17f6154 (patch) | |
tree | 2b387af42fb164dab6dc1cd5a2662f8bdf1628ed | |
parent | reposconf.py: Adds check to see if it is necessary to add auto_sync to section (diff) | |
download | layman-2094523aed86c80894bf97f7cc7366cda17f6154.tar.gz layman-2094523aed86c80894bf97f7cc7366cda17f6154.tar.bz2 layman-2094523aed86c80894bf97f7cc7366cda17f6154.zip |
reposconf.py: Modifies disable function to reflect enabled overlay output
-rw-r--r-- | layman/config_modules/reposconf/reposconf.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/layman/config_modules/reposconf/reposconf.py b/layman/config_modules/reposconf/reposconf.py index 75bdc6d..b843ca3 100644 --- a/layman/config_modules/reposconf/reposconf.py +++ b/layman/config_modules/reposconf/reposconf.py @@ -132,7 +132,12 @@ class ConfigHandler: self.repo_conf.set(overlay.name, '#date disabled', current_date) self.repo_conf.set(overlay.name, '#priority', str(overlay.priority)) self.repo_conf.set(overlay.name, '#location', path((self.storage, overlay.name))) - self.repo_conf.set(overlay.name, '#sync-uri', overlay.sources[0].src) + self.repo_conf.set(overlay.name, '#layman-type', overlay.sources[0].type_key) + if sync_type: + self.repo_conf.set(overlay.name, '#sync_type', sync_type) + self.repo_conf.set(overlay.name, '#sync-uri', overlay.sources[0].src) + if overlay.sources[0].branch: + self.repo_conf.set(overlay.name, '#branch', overlay.sources[0].branch) if sync_type: self.repo_conf.set(overlay.name, '#auto-sync', self.config['auto_sync']) |