[Pkg-javascript-commits] [node-osenv] 06/09: fix patch

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Nov 10 07:18:21 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 1ef3959395cffabeffaf45ab7b7c77568da22d72
Author: Pirate Praveen <praveen at debian.org>
Date:   Fri Nov 10 12:30:54 2017 +0530

    fix patch
---
 debian/patches/use-require-os.patch | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/debian/patches/use-require-os.patch b/debian/patches/use-require-os.patch
index dc0b78a..9dbb35a 100644
--- a/debian/patches/use-require-os.patch
+++ b/debian/patches/use-require-os.patch
@@ -1,14 +1,26 @@
 --- a/osenv.js
 +++ b/osenv.js
-@@ -1,8 +1,9 @@
+@@ -1,8 +1,7 @@
  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
+@@ -47,11 +46,11 @@
+ }, 'hostname')
+ 
+ memo('tmpdir', function () {
+-  return osTmpdir()
++  return os.tmpdir()
+ })
+ 
+ memo('home', function () {
+-  return osHomedir()
++  return os.homedir()
+ })
+ 
+ memo('path', function () {

-- 
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