From cf4e1bd4e0113027e878dcf8b2b3a542821937b8 Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Mon, 9 Feb 2015 12:20:52 -0800 Subject: [PATCH] Add comment to previousSolution catalog refresh --- tools/project-context.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/project-context.js b/tools/project-context.js index ff7729e46d..fd2ebc2749 100644 --- a/tools/project-context.js +++ b/tools/project-context.js @@ -402,6 +402,13 @@ _.extend(ProjectContext.prototype, { var resolveOptions = { previousSolution: cachedVersions, anticipatedPrereleases: anticipatedPrereleases, + // Not finding an exact match for a previous version in the catalog + // is considered an error if we haven't refreshed yet, and will + // trigger a refresh and another attempt. That way, if a previous + // version exists, you'll get it, even if we don't have a record + // of it yet. It's not actually fatal, though, for previousSolution + // to refer to package versions that we don't have access to or don't + // exist. They'll end up getting changed or removed if possible. missingPreviousVersionIsError: isFirstAttempt }; if (self._upgradePackageNames)