[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4539/8267] classes/npm: set HOME during do_install
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 4539/8267] classes/npm: set HOME during do_install
- Date: Sun, 17 Dec 2017 02:10:43 +0000 (UTC)
commit 21ace8b6202e906689619ebdb41e745a6c12975b
Author: Paul Eggleton <paul eggleton linux intel com>
Date: Tue Feb 7 09:45:40 2017 +1300
classes/npm: set HOME during do_install
In do_compile we set HOME so that ~/.npm* only get created in the work
directory; we need to do the same in do_install as well or they'll go
into the user's home directory which we do not want.
(From OE-Core rev: a667cb9ed2dceb804b85d1a024e2619bc34d2681)
Signed-off-by: Paul Eggleton <paul eggleton linux intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
meta/classes/npm.bbclass | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass
index 1c778a7..c538040 100644
--- a/meta/classes/npm.bbclass
+++ b/meta/classes/npm.bbclass
@@ -32,6 +32,9 @@ npm_do_compile() {
}
npm_do_install() {
+ # changing the home directory to the working directory, the .npmrc will
+ # be created in this directory
+ export HOME=${WORKDIR}
mkdir -p ${NPM_INSTALLDIR}/
npm install --prefix ${D}${prefix} -g --arch=${NPM_ARCH} --target_arch=${NPM_ARCH} --production
--no-registry
if [ -d ${D}${prefix}/etc ] ; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]