* fix: get_rev_deps must return [] when package not found in repos
* fix: silly unicode fixes :(
This commit is contained in:
+1
-1
@@ -88,7 +88,7 @@ class ComponentDB(object):
|
|||||||
self.d.close()
|
self.d.close()
|
||||||
|
|
||||||
def has_component(self, name):
|
def has_component(self, name):
|
||||||
return self.d.has_key(name)
|
return self.d.has_key(str(name))
|
||||||
|
|
||||||
def get_component(self, name):
|
def get_component(self, name):
|
||||||
if not self.has_component(name):
|
if not self.has_component(name):
|
||||||
|
|||||||
+1
-1
@@ -135,7 +135,7 @@ def get_rev_deps(name):
|
|||||||
if inst_packagedb.has_package(name):
|
if inst_packagedb.has_package(name):
|
||||||
return inst_packagedb.get_rev_deps(name)
|
return inst_packagedb.get_rev_deps(name)
|
||||||
|
|
||||||
return None
|
return []
|
||||||
|
|
||||||
def remove_package(name):
|
def remove_package(name):
|
||||||
# remove the guy from the tracking databases
|
# remove the guy from the tracking databases
|
||||||
|
|||||||
Reference in New Issue
Block a user