1 |
commit: b693439b662c3d4d2bf6a445cb89c04eb924160f |
2 |
Author: Michael <kensington <AT> astralcloak <DOT> net> |
3 |
AuthorDate: Fri Dec 30 17:44:51 2011 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 30 17:49:25 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=commit;h=b693439b |
7 |
|
8 |
Forward-compat WEB_CATEGORY variable |
9 |
|
10 |
Versions previous to 1.50.18 did not include WEB_CATEGORY which was |
11 |
stored in ${webapp_installed_dir}/.webapp, but newer versions require it. |
12 |
Make old installations forward-compatible by pretending this variable exists. |
13 |
|
14 |
Reported-By: Patrick <mail <AT> patrick-nagel.net> |
15 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
16 |
X-Gentoo-Bug: 355295 |
17 |
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=355295 |
18 |
|
19 |
--- |
20 |
WebappConfig/dotconfig.py | 4 ++++ |
21 |
1 files changed, 4 insertions(+), 0 deletions(-) |
22 |
|
23 |
diff --git a/WebappConfig/dotconfig.py b/WebappConfig/dotconfig.py |
24 |
index 610d1e3..ad3d894 100644 |
25 |
--- a/WebappConfig/dotconfig.py |
26 |
+++ b/WebappConfig/dotconfig.py |
27 |
@@ -119,6 +119,10 @@ class DotConfig: |
28 |
def __getitem__(self, key): |
29 |
if key in self.__data.keys(): |
30 |
return self.__data[key] |
31 |
+ # this key didn't exist in old versions, but new versions |
32 |
+ # expect it. fix bug 355295 |
33 |
+ elif key == 'WEB_CATEGORY': |
34 |
+ return '' |
35 |
|
36 |
def __dot_config(self): |
37 |
''' Returns the full path to the dot config file.''' |