diff options
author | Gunnar Wrobel <wrobel@gentoo.org> | 2007-04-27 21:07:45 +0000 |
---|---|---|
committer | Gunnar Wrobel <wrobel@gentoo.org> | 2007-04-27 21:07:45 +0000 |
commit | a2b7edf03bf423fbcdd7a258d6254d3ed49c5672 (patch) | |
tree | f64b389087c6348a1d756d3f55612a5c7f5e4185 /WebappConfig/server.py | |
parent | Fixed sorting in doctest. (diff) | |
download | webapp-config-a2b7edf03bf423fbcdd7a258d6254d3ed49c5672.tar.gz webapp-config-a2b7edf03bf423fbcdd7a258d6254d3ed49c5672.tar.bz2 webapp-config-a2b7edf03bf423fbcdd7a258d6254d3ed49c5672.zip |
Fixed installed package check in server.py
svn path=/trunk/webapp-config/; revision=37
Diffstat (limited to 'WebappConfig/server.py')
-rw-r--r-- | WebappConfig/server.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/WebappConfig/server.py b/WebappConfig/server.py index fc22330..8fb4ad5 100644 --- a/WebappConfig/server.py +++ b/WebappConfig/server.py @@ -45,7 +45,8 @@ class Basic: directories, permissions, handler, - flags): + flags, + pm): if self.dep and not self.supported(): OUT.die('Your configuration file sets the server type "' + self.name @@ -79,6 +80,8 @@ class Basic: self.__handler = handler self.__flags = flags + self.__pm = pm + self.__ws = handler['source'] self.__content = handler['content'] self.__protect = handler['protect'] @@ -298,7 +301,7 @@ class Basic: # 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): + if self.dep and package_installed(self.dep, self.__pm): return True return False |