diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-02-25 17:06:15 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-02-25 17:06:46 +0100 |
commit | 36e9a891464b00f83be9378334a51e4d51a2ed62 (patch) | |
tree | fbf823f2adf26c484dc349634624126f8d73150e /community/yarn/add-apk-install-method.patch | |
parent | 9fc168c573648e5c2f42008b1d642fa3fe723055 (diff) | |
download | aports-36e9a891464b00f83be9378334a51e4d51a2ed62.tar.bz2 aports-36e9a891464b00f83be9378334a51e4d51a2ed62.tar.xz |
community/yarn: move from testing
Diffstat (limited to 'community/yarn/add-apk-install-method.patch')
-rw-r--r-- | community/yarn/add-apk-install-method.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/yarn/add-apk-install-method.patch b/community/yarn/add-apk-install-method.patch new file mode 100644 index 0000000000..9577804bb6 --- /dev/null +++ b/community/yarn/add-apk-install-method.patch @@ -0,0 +1,39 @@ +diff -urp dist/lib/cli/commands/install.js patched/lib/cli/commands/install.js +--- dist/lib/cli/commands/install.js 2017-02-01 00:36:23.000000000 +0000 ++++ patched/lib/cli/commands/install.js 2017-02-01 01:25:41.000000000 +0000 +@@ -226,6 +226,10 @@ function getUpdateCommand() { + return 'choco upgrade yarn'; + } + ++ if (YARN_INSTALL_METHOD === 'apk') { ++ return 'apk update && apk add -u yarn'; ++ } ++ + return null; + } + +diff -urp dist/lib-legacy/cli/commands/install.js patched/lib-legacy/cli/commands/install.js +--- dist/lib-legacy/cli/commands/install.js 2017-01-30 14:13:43.000000000 +0000 ++++ patched/lib-legacy/cli/commands/install.js 2017-02-01 01:32:32.000000000 +0000 +@@ -238,6 +238,10 @@ function getUpdateCommand() { + return 'choco upgrade yarn'; + } + ++ if (YARN_INSTALL_METHOD === 'apk') { ++ return 'apk update && apk add -u yarn'; ++ } ++ + return null; + } + +diff -urp dist/package.json patched/package.json +--- dist/package.json 2017-02-01 01:23:37.000000000 +0000 ++++ patched/package.json 2017-02-01 01:23:50.000000000 +0000 +@@ -1,6 +1,6 @@ + { + "name": "yarn", +- "installationMethod": "tar", ++ "installationMethod": "apk", + "version": "0.20.3", + "license": "BSD-2-Clause", + "preferGlobal": true, |