[Pkg-javascript-commits] [node-osenv] 03/09: use os.homedir, os.tmpdir

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Nov 10 07:18:20 UTC 2017


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

praveen pushed a commit to branch master
in repository node-osenv.

commit c33fdc58336c34b7d18119af440c3ba120932630
Author: Pirate Praveen <praveen at debian.org>
Date:   Fri Nov 10 12:22:48 2017 +0530

    use os.homedir, os.tmpdir
---
 debian/patches/series               |  1 +
 debian/patches/use-require-os.patch | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..625b902
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use-require-os.patch
diff --git a/debian/patches/use-require-os.patch b/debian/patches/use-require-os.patch
new file mode 100644
index 0000000..dc0b78a
--- /dev/null
+++ b/debian/patches/use-require-os.patch
@@ -0,0 +1,14 @@
+--- a/osenv.js
++++ b/osenv.js
+@@ -1,8 +1,9 @@
+ var isWindows = process.platform === 'win32'
+ var path = require('path')
++var os = require('os')
+ var exec = require('child_process').exec
+-var osTmpdir = require('os-tmpdir')
+-var osHomedir = require('os-homedir')
++var osTmpdir = os.tmpdir()
++var osHomedir = os.homedir()
+ 
+ // looking up envs is a bit costly.
+ // Also, sometimes we want to have a fallback

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



More information about the Pkg-javascript-commits mailing list