Gentoo Archives: gentoo-commits

From: Devan Franchini <twitch153@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/layman:master commit in: layman/config_modules/reposconf/
Date: Thu, 05 Feb 2015 02:56:49
Message-Id: 1423104988.894c5faa1565b2abfc6a568a8bc865a85b385e30.twitch153@gentoo
1 commit: 894c5faa1565b2abfc6a568a8bc865a85b385e30
2 Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 5 02:56:28 2015 +0000
4 Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 5 02:56:28 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=894c5faa
7
8 reposconf.py: Changes sync_type to SYNC_TYPE to reflect global var standards
9
10 ---
11 layman/config_modules/reposconf/reposconf.py | 10 +++++-----
12 1 file changed, 5 insertions(+), 5 deletions(-)
13
14 diff --git a/layman/config_modules/reposconf/reposconf.py b/layman/config_modules/reposconf/reposconf.py
15 index fa75dc6..e61dfe0 100644
16 --- a/layman/config_modules/reposconf/reposconf.py
17 +++ b/layman/config_modules/reposconf/reposconf.py
18 @@ -29,9 +29,9 @@ else:
19
20 try:
21 from portage.sync.modules import laymanator
22 - sync_type = "laymanator"
23 + SYNC_TYPE = "laymanator"
24 except ImportError:
25 - sync_type = None
26 + SYNC_TYPE = None
27
28 from layman.compatibility import fileopen
29 from layman.utils import path
30 @@ -91,12 +91,12 @@ class ConfigHandler:
31 self.repo_conf.set(overlay.name, 'priority', str(overlay.priority))
32 self.repo_conf.set(overlay.name, 'location', path((self.storage, overlay.name)))
33 self.repo_conf.set(overlay.name, 'layman-type', overlay.sources[0].type_key)
34 - if sync_type:
35 - self.repo_conf.set(overlay.name, 'sync-type', sync_type)
36 + if SYNC_TYPE:
37 + self.repo_conf.set(overlay.name, 'sync-type', SYNC_TYPE)
38 self.repo_conf.set(overlay.name, 'sync-uri', overlay.sources[0].src)
39 if overlay.sources[0].branch:
40 self.repo_conf.set(overlay.name, 'branch', overlay.sources[0].branch)
41 - if sync_type: #To maintain a desired structure, we have to do this check twice.
42 + if SYNC_TYPE: #To maintain a desired structure, we have to do this check twice.
43 self.repo_conf.set(overlay.name, 'auto-sync', self.config['auto_sync'])
44 else:
45 self.repo_conf.set(overlay.name, 'auto-sync', 'No')