From ef78afbca6a00a1cd01e372c4eef7f03e51bcbb7 Mon Sep 17 00:00:00 2001 From: Martijn Walraven Date: Mon, 24 Aug 2015 13:51:35 +0200 Subject: [PATCH] Fix CordovaProject#updatePlatforms --- tools/cordova/project.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cordova/project.js b/tools/cordova/project.js index 3b2cafc860..ea1e1e5cf5 100644 --- a/tools/cordova/project.js +++ b/tools/cordova/project.js @@ -19,7 +19,7 @@ import cordova_util from 'cordova-lib/src/cordova/util.js'; import superspawn from 'cordova-lib/src/cordova/superspawn.js'; import PluginInfoProvider from 'cordova-lib/src/PluginInfoProvider.js'; -import { AVAILABLE_PLATFORMS, displayNameForPlatform } from './index.js'; +import { AVAILABLE_PLATFORMS, displayNameForPlatform, displayNamesForPlatforms } from './index.js'; import { CordovaBuilder } from './builder.js'; cordova_events.on('results', logIfVerbose); @@ -235,7 +235,7 @@ before running or building for ${displayNameForPlatform(platform)}:`); updatePlatforms(platforms = this.listInstalledPlatforms()) { this.runCommands(`updating Cordova project for platforms \ -${displayNamesForPlatforms(platform)}`, async () => { +${displayNamesForPlatforms(platforms)}`, async () => { await cordova_lib.raw.platform('update', platforms, this.defaultOptions); }); }