1 |
commit: 97f659b6d1a64957f8de8d823992a776fac1e0e2 |
2 |
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 17 21:38:22 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=97f659b6 |
7 |
|
8 |
layman_.py: Adds subprocess use of --storage flag |
9 |
|
10 |
In order to respect the location of the repository defined by repos.conf |
11 |
the subprocess now specifies the storage location. |
12 |
|
13 |
--- |
14 |
layman/layman_/layman_.py | 8 ++++++++ |
15 |
1 file changed, 8 insertions(+) |
16 |
|
17 |
diff --git a/layman/layman_/layman_.py b/layman/layman_/layman_.py |
18 |
index f869a96..420cba0 100644 |
19 |
--- a/layman/layman_/layman_.py |
20 |
+++ b/layman/layman_/layman_.py |
21 |
@@ -51,8 +51,12 @@ class Layman(SyncBase): |
22 |
self.logger(self.xterm_titles, msg) |
23 |
writemsg_level(msg + '\n') |
24 |
|
25 |
+ location = self.repo.location.replace(self.repo.name, '') |
26 |
+ |
27 |
args.append('layman -n') |
28 |
self._get_optargs(args) |
29 |
+ args.append('--storage') |
30 |
+ args.append(location) |
31 |
args.append('-a') |
32 |
args.append(self.repo.name) |
33 |
|
34 |
@@ -81,8 +85,12 @@ class Layman(SyncBase): |
35 |
self.logger(self.xterm_titles, msg) |
36 |
writemsg_level(msg + '\n') |
37 |
|
38 |
+ location = self.repo.location.replace(self.repo.name, '') |
39 |
+ |
40 |
args.append('layman -n') |
41 |
self._get_optargs(args) |
42 |
+ args.append('--storage') |
43 |
+ args.append(location) |
44 |
args.append('-s') |
45 |
args.append(self.repo.name) |