From 89f86b1b7c05ae189f096defc19adf0d23011e72 Mon Sep 17 00:00:00 2001 From: Avital Oliver Date: Thu, 12 Mar 2015 12:46:46 -0700 Subject: [PATCH] Fix publish-for-arch in Windows We recently changed the package tarball structure to use colonConverter in package-client.js but not in commands-package.js --- tools/commands-packages.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/commands-packages.js b/tools/commands-packages.js index 6ad5ad81a6..db15ecc3fd 100644 --- a/tools/commands-packages.js +++ b/tools/commands-packages.js @@ -26,6 +26,7 @@ var Console = require('./console.js').Console; var projectContextModule = require('./project-context.js'); var packageMapModule = require('./package-map.js'); var packageVersionParser = require('./package-version-parser.js'); +var colonConverter = require("./colon-converter.js"); // For each release (or package), we store a meta-record with its name, // maintainers, etc. This function takes in a name, figures out if @@ -601,7 +602,7 @@ main.registerCommand({ // XXX Factor out with packageClient.bundleSource so that we don't // have knowledge of the tarball structure in two places. - var packageDir = files.pathJoin(sourcePath, name); + var packageDir = files.pathJoin(sourcePath, colonConverter.convert(name)); if (! files.exists(packageDir)) { Console.error('Malformed source tarball'); return 1;