aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@gentoo.org>2007-04-27 22:09:58 +0000
committerGunnar Wrobel <wrobel@gentoo.org>2007-04-27 22:09:58 +0000
commitac35a177289eca4a7b65d96933d76246f5a4f919 (patch)
treef39be9f5ef497e3925e659330b11e0a54874c9dd
parentFixed installed package check in server.py (diff)
downloadwebapp-config-ac35a177289eca4a7b65d96933d76246f5a4f919.tar.gz
webapp-config-ac35a177289eca4a7b65d96933d76246f5a4f919.tar.bz2
webapp-config-ac35a177289eca4a7b65d96933d76246f5a4f919.zip
Fix for package_installed
svn path=/trunk/webapp-config/; revision=40
-rw-r--r--WebappConfig/db.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/WebappConfig/db.py b/WebappConfig/db.py
index bad444b..856761e 100644
--- a/WebappConfig/db.py
+++ b/WebappConfig/db.py
@@ -721,8 +721,14 @@ class WebappSource(AppHierarchy):
OUT.debug('Verifying package ' + self.package_name(), 6)
+ # package_installed() does not handle "/PN" correctly
+ package = self.pn
+
+ if self.category:
+ package = self.category + '/' + self.pn
+
# not using self.package_name() here as we don't need pvr
- if not wrapper.package_installed(self.category + '/' + self.pn, self.pm):
+ if not wrapper.package_installed(package, self.pm):
return 1
# unfortunately, just because a package has been installed, it