summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-04-01 23:36:14 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-04-01 23:36:14 +0200
commit86bbc23fbc94c684be1ab5d1bbbb58c35477aa91 (patch)
treedce0d6a2dd3e78046d6595a14449e45abbe6880c
parentacf7b55874cd33990bd9daa45d784a8e6d934690 (diff)
downloadportato-86bbc23fbc94c684be1ab5d1bbbb58c35477aa91.tar.gz
portato-86bbc23fbc94c684be1ab5d1bbbb58c35477aa91.tar.bz2
portato-86bbc23fbc94c684be1ab5d1bbbb58c35477aa91.zip
Use exception names provided by catapult
-rw-r--r--portato/backend/catapult/system.py3
-rw-r--r--portato/backend/package.py1
2 files changed, 1 insertions, 3 deletions
diff --git a/portato/backend/catapult/system.py b/portato/backend/catapult/system.py
index 5b019e4..7584d13 100644
--- a/portato/backend/catapult/system.py
+++ b/portato/backend/catapult/system.py
@@ -86,9 +86,8 @@ class CatapultSystem (SystemInterface):
l = self.proxy.find_packages(key, set, masked, withVersion)
except dbus.DBusException, e:
name, data = str(e).split("\n")[-2].split(": ")[1:]
- debug((name, data))
- if name == "org.gentoo.catapult.AmbigousPackageError":
+ if name == catapult.CATAPULT_ERR_AMBIGUOUS_PACKAGE:
debug("Ambigous packages: %s.", data)
l = []
for cp in data.split(","):
diff --git a/portato/backend/package.py b/portato/backend/package.py
index 02579fb..0ac22d3 100644
--- a/portato/backend/package.py
+++ b/portato/backend/package.py
@@ -177,7 +177,6 @@ class Package (_Package):
"""
deps = " ".join(map(self.get_package_settings, ("RDEPEND", "PDEPEND", "DEPEND")))
deps = paren_reduce(deps)
- debug("Dependencies: %s", deps)
tree = DependencyTree()