aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@gentoo.org>2007-04-27 21:11:16 +0000
committerGunnar Wrobel <wrobel@gentoo.org>2007-04-27 21:11:16 +0000
commitcbf8ac7bd84b3bb262816fb16af2d4e9a7f5263e (patch)
treed9e3e21bea7a864b5845d7af43f0e1ac571a0719
parentFixed installed package check in server.py (diff)
downloadwebapp-config-cbf8ac7bd84b3bb262816fb16af2d4e9a7f5263e.tar.gz
webapp-config-cbf8ac7bd84b3bb262816fb16af2d4e9a7f5263e.tar.bz2
webapp-config-cbf8ac7bd84b3bb262816fb16af2d4e9a7f5263e.zip
Fixed installed package check in server.py
svn path=/trunk/webapp-config/; revision=39
-rw-r--r--WebappConfig/server.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/WebappConfig/server.py b/WebappConfig/server.py
index dcbd364..4fd173b 100644
--- a/WebappConfig/server.py
+++ b/WebappConfig/server.py
@@ -48,7 +48,7 @@ class Basic:
flags,
pm):
- if self.dep and not self.supported():
+ if self.dep and not self.supported(pm):
OUT.die('Your configuration file sets the server type "' + self.name
+ '"\nbut the corresponding package does not seem to be '
'installed!\nPlease "emerge ' + self.dep + '" or correct '
@@ -80,8 +80,6 @@ class Basic:
self.__handler = handler
self.__flags = flags
- self.pm = pm
-
self.__ws = handler['source']
self.__content = handler['content']
self.__protect = handler['protect']
@@ -297,11 +295,11 @@ class Basic:
OUT.info('Install completed - success', 1)
- def supported(self):
+ def supported(self, pm):
# I don't think we should be forcing to have a webserver installed -- rl03
# Maybe, but the test should then be disabled somewhere else.
# Reverted back to the original version for now -- wrobel
- if self.dep and package_installed(self.dep, self.pm):
+ if self.dep and package_installed(self.dep, pm):
return True
return False