1 |
commit: bc820e2c9e37ea3e6f15575dc41ce29870511cf5 |
2 |
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 17 03:07:26 2014 +0000 |
4 |
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 19 03:49:57 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=bc820e2c |
7 |
|
8 |
sync/__init__.py: Adds description for "new" action |
9 |
|
10 |
--- |
11 |
layman/sync/__init__.py | 4 ++-- |
12 |
1 file changed, 2 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/layman/sync/__init__.py b/layman/sync/__init__.py |
15 |
index 303f996..2282f51 100644 |
16 |
--- a/layman/sync/__init__.py |
17 |
+++ b/layman/sync/__init__.py |
18 |
@@ -18,7 +18,7 @@ options = {'1': 'Layman', '2': 'PyLayman'} |
19 |
config_class = DEFAULT_CLASS |
20 |
try: |
21 |
test_param = os.environ["TESTIT"] |
22 |
- if test_param in options: |
23 |
+ if str(test_param) in options: |
24 |
config_class = options[test_param] |
25 |
except KeyError: |
26 |
pass |
27 |
@@ -35,7 +35,7 @@ module_spec = { |
28 |
'functions': ['sync', 'new', 'exists'], |
29 |
'func_desc': { |
30 |
'sync': 'Performs a layman sync of the specified overlay', |
31 |
- 'new': 'Currently does nothing', |
32 |
+ 'new': 'Performs a layman add of the specified overlay', |
33 |
'exists': 'Returns a boolean of whether the specified dir ' + |
34 |
'exists and is a valid repository', |
35 |
}, |