* fix: get_rev_deps must return [] when package not found in repos

* fix: silly unicode fixes :(
This commit is contained in:
Eray Özkural
2005-11-17 13:34:09 +00:00
parent 159125dec8
commit 4cb0c3a15b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ class ComponentDB(object):
self.d.close()
def has_component(self, name):
return self.d.has_key(name)
return self.d.has_key(str(name))
def get_component(self, name):
if not self.has_component(name):
+1 -1
View File
@@ -135,7 +135,7 @@ def get_rev_deps(name):
if inst_packagedb.has_package(name):
return inst_packagedb.get_rev_deps(name)
return None
return []
def remove_package(name):
# remove the guy from the tracking databases