1 |
commit: 8ef13ec8d489f876c4c335e0982d7acfe151a222 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 1 16:55:30 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 1 16:55:30 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=8ef13ec8 |
7 |
|
8 |
grs/WorldConf.py: clean up variable name. |
9 |
|
10 |
grs/WorldConf.py | 6 +++--- |
11 |
1 file changed, 3 insertions(+), 3 deletions(-) |
12 |
|
13 |
diff --git a/grs/WorldConf.py b/grs/WorldConf.py |
14 |
index ba683cd..d8140d8 100644 |
15 |
--- a/grs/WorldConf.py |
16 |
+++ b/grs/WorldConf.py |
17 |
@@ -14,7 +14,7 @@ class WorldConf(): |
18 |
""" |
19 |
|
20 |
@staticmethod |
21 |
- def conf2file(config, s, portage_dir): |
22 |
+ def conf2file(config, s, portage_confdir): |
23 |
""" doc here |
24 |
more doc |
25 |
""" |
26 |
@@ -23,7 +23,7 @@ class WorldConf(): |
27 |
# a '+' at the beginging means append to the file |
28 |
undecorated_f = re.sub('^\+', '', f) |
29 |
|
30 |
- filepath = os.path.join(portage_dir, undecorated_f) |
31 |
+ filepath = os.path.join(portage_confdir, undecorated_f) |
32 |
dirpath = os.path.dirname(filepath) |
33 |
os.makedirs(dirpath, mode=0o755, exist_ok=True) |
34 |
if f == undecorated_f or not os.path.exists(filepath): |
35 |
@@ -49,7 +49,7 @@ class WorldConf(): |
36 |
config.read(CONST.WORLD_CONFIG) |
37 |
|
38 |
for s in config.sections(): |
39 |
- WorldConf.conf2file(config, s, portage_dir=CONST.PORTAGE_CONFIGDIR) |
40 |
+ WorldConf.conf2file(config, s, portage_confdir=CONST.PORTAGE_CONFIGDIR) |
41 |
|
42 |
|
43 |
@staticmethod |