ad877a7e29
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
20 lines
834 B
Diff
20 lines
834 B
Diff
--- a/bin/yarn.js 2018-09-18 14:33:30.318123244 -0700
|
|
+++ b/bin/yarn.js 2018-09-18 14:35:10.715515522 -0700
|
|
@@ -12,7 +12,7 @@
|
|
process.exit(1); // eslint-disable-line no-process-exit
|
|
} else {
|
|
try {
|
|
- require(__dirname + '/../lib/v8-compile-cache.js');
|
|
+ require('/usr/lib/yarn/v8-compile-cache.js');
|
|
} catch (err) {
|
|
// We don't have/need this on legacy builds and dev builds
|
|
}
|
|
@@ -21,7 +21,7 @@
|
|
// `require.main === module` check inside `cli/index.js` will always
|
|
// be truthy when built with webpack :(
|
|
// `lib/cli` may be `lib/cli/index.js` or `lib/cli.js` depending on the build.
|
|
- var cli = require(__dirname + '/../lib/cli');
|
|
+ var cli = require('/usr/lib/yarn/cli');
|
|
if (!cli.autoRun) {
|
|
cli.default().catch(function(error) {
|
|
console.error(error.stack || error.message || error);
|