aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2015-02-04 21:56:28 -0500
committerDevan Franchini <twitch153@gentoo.org>2015-02-04 21:56:28 -0500
commit894c5faa1565b2abfc6a568a8bc865a85b385e30 (patch)
tree27af07767c5fd38ad176cff8ac2106334a69ec6f
parentupdater.py: Moves split() and removes split() parameter (diff)
downloadlayman-894c5faa1565b2abfc6a568a8bc865a85b385e30.tar.gz
layman-894c5faa1565b2abfc6a568a8bc865a85b385e30.tar.bz2
layman-894c5faa1565b2abfc6a568a8bc865a85b385e30.zip
reposconf.py: Changes sync_type to SYNC_TYPE to reflect global var standards
-rw-r--r--layman/config_modules/reposconf/reposconf.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/layman/config_modules/reposconf/reposconf.py b/layman/config_modules/reposconf/reposconf.py
index fa75dc6..e61dfe0 100644
--- a/layman/config_modules/reposconf/reposconf.py
+++ b/layman/config_modules/reposconf/reposconf.py
@@ -29,9 +29,9 @@ else:
try:
from portage.sync.modules import laymanator
- sync_type = "laymanator"
+ SYNC_TYPE = "laymanator"
except ImportError:
- sync_type = None
+ SYNC_TYPE = None
from layman.compatibility import fileopen
from layman.utils import path
@@ -91,12 +91,12 @@ class ConfigHandler:
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, 'layman-type', overlay.sources[0].type_key)
- if sync_type:
- self.repo_conf.set(overlay.name, 'sync-type', sync_type)
+ 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: #To maintain a desired structure, we have to do this check twice.
+ 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')