Fix search --show-all

Fixes #3636
This commit is contained in:
David Glasser
2015-02-03 20:04:08 -08:00
parent 1880710079
commit 9d8acb61a1

View File

@@ -1503,7 +1503,7 @@ main.registerCommand({
} else {
// We want the latest version of this package, and we don't care if it is
// a release candidate.
vr = projectContext.layeredCatalog.getLatestVersion(name);
vr = projectContext.projectCatalog.getLatestVersion(name);
}
if (!vr) {
return false;
@@ -1557,7 +1557,7 @@ main.registerCommand({
projectContext.localCatalog.getLatestVersion(pack) ||
catalog.official.getLatestMainlineVersion(pack);
} else {
vr = projectContext.layeredCatalog.getLatestVersion(pack);
vr = projectContext.projectCatalog.getLatestVersion(pack);
}
if (vr) {
matchingPackages.push({