1 |
commit: 62e968d5456f773042d66456c4f87334c3d48709 |
2 |
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 16 02:48:17 2017 +0000 |
4 |
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 16 03:03:34 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/webapp-config.git/commit/?id=62e968d5 |
7 |
|
8 |
db.py: Uses EPREFIX variable |
9 |
|
10 |
X-Gentoo-Bug: 608018 |
11 |
X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018 |
12 |
|
13 |
WebappConfig/db.py | 7 ++++--- |
14 |
1 file changed, 4 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/WebappConfig/db.py b/WebappConfig/db.py |
17 |
index 0fbd34a..698c49a 100644 |
18 |
--- a/WebappConfig/db.py |
19 |
+++ b/WebappConfig/db.py |
20 |
@@ -26,6 +26,7 @@ import time, os, os.path, re |
21 |
import WebappConfig.wrapper as wrapper |
22 |
|
23 |
from WebappConfig.debug import OUT |
24 |
+from WebappConfig.eprefix import EPREFIX |
25 |
from WebappConfig.permissions import PermissionMap |
26 |
|
27 |
|
28 |
@@ -166,7 +167,7 @@ class WebappDB(AppHierarchy): |
29 |
|
30 |
def __init__(self, |
31 |
fs_root = '/', |
32 |
- root = '/var/db/webapps', |
33 |
+ root = EPREFIX + '/var/db/webapps', |
34 |
category = '', |
35 |
package = '', |
36 |
version = '', |
37 |
@@ -416,8 +417,8 @@ class WebappSource(AppHierarchy): |
38 |
''' |
39 |
|
40 |
def __init__(self, |
41 |
- fs_root = '/', |
42 |
- root = '/usr/share/webapps', |
43 |
+ fs_root = EPREFIX + '/', |
44 |
+ root = EPREFIX + '/usr/share/webapps', |
45 |
category = '', |
46 |
package = '', |
47 |
version = '', |