|
|
|
@ -1,18 +1,18 @@
|
|
|
|
|
Index: lib/config/core.js
|
|
|
|
|
--- lib/config/core.js.orig 2019-07-23 18:20:30.000000000 +0200
|
|
|
|
|
+++ lib/config/core.js 2019-07-23 20:44:43.467621000 +0200
|
|
|
|
|
@@ -292,7 +292,7 @@
|
|
|
|
|
fs.writeFile(target.path, data, 'utf8', function (er) {
|
|
|
|
|
if (er) return then(er)
|
|
|
|
|
if (where === 'user' && myUid && myGid) {
|
|
|
|
|
- fs.chown(target.path, +myUid, +myGid, then)
|
|
|
|
|
+ then()
|
|
|
|
|
} else {
|
|
|
|
|
then()
|
|
|
|
|
}
|
|
|
|
|
--- lib/config/core.js.orig 2019-08-30 23:36:14.842432000 +0200
|
|
|
|
|
+++ lib/config/core.js 2019-08-30 23:36:49.781204000 +0200
|
|
|
|
|
@@ -291,7 +291,7 @@
|
|
|
|
|
fs.writeFile(target.path, data, 'utf8', function (er) {
|
|
|
|
|
if (er) return then(er)
|
|
|
|
|
if (myUid === 0 && (myUid !== st.uid || myGid !== st.gid)) {
|
|
|
|
|
- fs.chown(target.path, st.uid, st.gid, then)
|
|
|
|
|
+ then()
|
|
|
|
|
} else {
|
|
|
|
|
then()
|
|
|
|
|
}
|
|
|
|
|
Index: lib/npm.js
|
|
|
|
|
--- lib/npm.js.orig 2019-07-23 18:20:30.000000000 +0200
|
|
|
|
|
+++ lib/npm.js 2019-07-23 20:44:43.467836000 +0200
|
|
|
|
|
--- lib/npm.js.orig 2019-08-22 20:56:01.000000000 +0200
|
|
|
|
|
+++ lib/npm.js 2019-08-30 23:36:14.842656000 +0200
|
|
|
|
|
@@ -404,9 +404,7 @@
|
|
|
|
|
Object.defineProperty(npm, 'globalDir',
|
|
|
|
|
{
|
|
|
|
@ -25,8 +25,8 @@ Index: lib/npm.js
|
|
|
|
|
enumerable: true
|
|
|
|
|
})
|
|
|
|
|
Index: lib/search/all-package-metadata.js
|
|
|
|
|
--- lib/search/all-package-metadata.js.orig 2019-07-23 18:20:30.000000000 +0200
|
|
|
|
|
+++ lib/search/all-package-metadata.js 2019-07-23 20:48:27.307969000 +0200
|
|
|
|
|
--- lib/search/all-package-metadata.js.orig 2019-08-22 20:56:01.000000000 +0200
|
|
|
|
|
+++ lib/search/all-package-metadata.js 2019-08-30 23:36:14.842802000 +0200
|
|
|
|
|
@@ -3,7 +3,6 @@
|
|
|
|
|
const BB = require('bluebird')
|
|
|
|
|
|
|
|
|
@ -61,8 +61,8 @@ Index: lib/search/all-package-metadata.js
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Index: lib/unbuild.js
|
|
|
|
|
--- lib/unbuild.js.orig 2019-07-23 18:20:30.000000000 +0200
|
|
|
|
|
+++ lib/unbuild.js 2019-07-23 20:44:43.468375000 +0200
|
|
|
|
|
--- lib/unbuild.js.orig 2019-08-22 20:56:01.000000000 +0200
|
|
|
|
|
+++ lib/unbuild.js 2019-08-30 23:36:14.842918000 +0200
|
|
|
|
|
@@ -98,7 +98,7 @@
|
|
|
|
|
!npm.config.get('global')) {
|
|
|
|
|
return cb()
|
|
|
|
@ -73,14 +73,15 @@ Index: lib/unbuild.js
|
|
|
|
|
asyncMap(pkg.man, function (man, cb) {
|
|
|
|
|
if (Array.isArray(man)) {
|
|
|
|
|
Index: lib/utils/correct-mkdir.js
|
|
|
|
|
--- lib/utils/correct-mkdir.js.orig 2019-07-23 20:44:43.468633000 +0200
|
|
|
|
|
+++ lib/utils/correct-mkdir.js 2019-07-23 20:49:39.436611000 +0200
|
|
|
|
|
@@ -1,4 +1,3 @@
|
|
|
|
|
--- lib/utils/correct-mkdir.js.orig 2019-08-22 20:56:01.000000000 +0200
|
|
|
|
|
+++ lib/utils/correct-mkdir.js 2019-08-30 23:37:01.268901000 +0200
|
|
|
|
|
@@ -1,5 +1,4 @@
|
|
|
|
|
// XXX this can probably be replaced with gentle-fs.mkdir everywhere it's used
|
|
|
|
|
-const chownr = require('chownr')
|
|
|
|
|
const inflight = require('inflight')
|
|
|
|
|
const log = require('npmlog')
|
|
|
|
|
const mkdirp = require('mkdirp')
|
|
|
|
|
@@ -27,7 +26,7 @@
|
|
|
|
|
@@ -28,7 +27,7 @@
|
|
|
|
|
log.error('correctMkdir', 'failed to make directory %s', path)
|
|
|
|
|
return cb(er)
|
|
|
|
|
}
|
|
|
|
@ -90,8 +91,8 @@ Index: lib/utils/correct-mkdir.js
|
|
|
|
|
}, er => {
|
|
|
|
|
log.error('correctMkdir', 'failed to infer path ownership %s', path)
|
|
|
|
|
Index: node_modules/bin-links/index.js
|
|
|
|
|
--- node_modules/bin-links/index.js.orig 2019-07-23 18:20:30.000000000 +0200
|
|
|
|
|
+++ node_modules/bin-links/index.js 2019-07-23 20:44:43.468998000 +0200
|
|
|
|
|
--- node_modules/bin-links/index.js.orig 2019-08-22 20:56:01.000000000 +0200
|
|
|
|
|
+++ node_modules/bin-links/index.js 2019-08-30 23:36:14.843200000 +0200
|
|
|
|
|
@@ -117,7 +117,7 @@
|
|
|
|
|
function linkMans (pkg, folder, parent, gtop, opts) {
|
|
|
|
|
if (!pkg.man || !gtop || process.platform === 'win32') return
|
|
|
|
@ -102,8 +103,8 @@ Index: node_modules/bin-links/index.js
|
|
|
|
|
|
|
|
|
|
// make sure that the mans are unique.
|
|
|
|
|
Index: node_modules/npm-lifecycle/index.js
|
|
|
|
|
--- node_modules/npm-lifecycle/index.js.orig 2019-07-23 18:20:30.000000000 +0200
|
|
|
|
|
+++ node_modules/npm-lifecycle/index.js 2019-07-23 20:44:43.469278000 +0200
|
|
|
|
|
--- node_modules/npm-lifecycle/index.js.orig 2019-08-22 20:56:01.000000000 +0200
|
|
|
|
|
+++ node_modules/npm-lifecycle/index.js 2019-08-30 23:36:14.843347000 +0200
|
|
|
|
|
@@ -193,7 +193,6 @@
|
|
|
|
|
if (cfgsetting === 'warn-only') {
|
|
|
|
|
if (isDifferentNodeInPath && !shouldPrependCurrentNodeDirToPATH.hasWarned) {
|
|
|
|
|