[equo] fix "equo match --installed" when used with "--multimatch"

This commit is contained in:
Fabio Erculiani
2010-04-16 12:50:47 +02:00
parent 87f1531876
commit 09a8b07b1b

View File

@@ -1215,7 +1215,11 @@ def match_package(packages, multiMatch = False, multiRepo = False,
if inst_rc != 0:
match = (-1, 1)
else:
match = (inst_pkg_id, etpConst['clientdbid'])
if multiMatch:
match = ([(x, etpConst['clientdbid']) for x in inst_pkg_id],
0)
else:
match = (inst_pkg_id, etpConst['clientdbid'])
else:
match = Equo.atom_match(package, multi_match = multiMatch,
multi_repo = multiRepo, mask_filter = False)