From 9d8acb61a12062d86ada91136bc771b6cbffc404 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Tue, 3 Feb 2015 20:04:08 -0800 Subject: [PATCH] Fix search --show-all Fixes #3636 --- tools/commands-packages-query.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/commands-packages-query.js b/tools/commands-packages-query.js index 2c3e9e733c..40a0cedb81 100644 --- a/tools/commands-packages-query.js +++ b/tools/commands-packages-query.js @@ -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({