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
This commit is contained in:
Avital Oliver
2015-03-12 12:46:46 -07:00
parent 8f3c305037
commit 89f86b1b7c

View File

@@ -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;