* fix: do show installed only packages

This commit is contained in:
Eray Özkural
2006-05-08 17:19:45 +00:00
parent 14df42ac31
commit 5dfea1e490
+1 -1
View File
@@ -272,7 +272,7 @@ def info_file(package_fn):
def info_name(package_name, installed=False):
"""fetch package information for a package"""
if ctx.packagedb.has_package(package_name):
if ctx.packagedb.has_package(package_name, pisi.itembyrepodb.all):
if installed:
package = ctx.packagedb.get_package(package_name, pisi.itembyrepodb.installed)
else: