[Pkg-javascript-commits] [node-yarnpkg] 11/13: Patch away cmd-shim (only required on Windows)

Paolo Greppi paolog-guest at moszumanska.debian.org
Sat Dec 24 14:36:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

paolog-guest pushed a commit to branch master
in repository node-yarnpkg.

commit 81d7ecfbcd5721217a5fd22a886dfe6919080463
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Sat Dec 24 14:13:09 2016 +0000

    Patch away cmd-shim (only required on Windows)
---
 debian/control                  |  1 -
 debian/patches/01-cmd-shim.diff | 25 +++++++++++++++++++++++++
 debian/patches/series           |  1 +
 3 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index ad9a175..3786c25 100644
--- a/debian/control
+++ b/debian/control
@@ -22,7 +22,6 @@ Depends:
  , node-bytes (>= 2.4.0)
  , node-camelcase (>= 3.0.0)
  , node-chalk (>= 1.1.1)
- , node-cmd-shim (>= 2.0.1)
  , node-commander (>= 2.9.0)
  , node-death (>= 1.0.0)
  , node-debug (>= 2.2.0)
diff --git a/debian/patches/01-cmd-shim.diff b/debian/patches/01-cmd-shim.diff
new file mode 100644
index 0000000..26f7947
--- /dev/null
+++ b/debian/patches/01-cmd-shim.diff
@@ -0,0 +1,25 @@
+Description: Patch away cmd-shim (only required on Windows).
+Forwarded: not-needed
+Author: Paolo Greppi <paolo.greppi at libpf.com>
+
+Index: node-yarnpkg/src/package-linker.js
+===================================================================
+--- node-yarnpkg.orig/src/package-linker.js
++++ node-yarnpkg/src/package-linker.js
+@@ -13,7 +13,6 @@ import {entries} from './util/misc.js';
+ import * as fs from './util/fs.js';
+ 
+ const invariant = require('invariant');
+-const cmdShim = promise.promisify(require('cmd-shim'));
+ const semver = require('semver');
+ const path = require('path');
+ 
+@@ -24,7 +23,7 @@ type DependencyPairs = Array<{
+ 
+ export async function linkBin(src: string, dest: string): Promise<void> {
+   if (process.platform === 'win32') {
+-    await cmdShim(src, dest);
++    ;
+   } else {
+     await fs.mkdirp(path.dirname(dest));
+     await fs.symlink(src, dest);
diff --git a/debian/patches/series b/debian/patches/series
index 8390d98..b755857 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 00-nodejs.diff
+01-cmd-shim.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-yarnpkg.git



More information about the Pkg-javascript-commits mailing list