mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-18 02:39:49 +00:00
Merge pull request #1329 from balena-io/1306-patch-preload-tarfs
Patch 'pkg' package to resolve 'preload' issue in standalone installations
This commit is contained in:
commit
b74a0d1141
@ -105,7 +105,7 @@
|
|||||||
"gulp-mocha": "^2.0.0",
|
"gulp-mocha": "^2.0.0",
|
||||||
"gulp-shell": "^0.5.2",
|
"gulp-shell": "^0.5.2",
|
||||||
"mochainon": "^2.0.0",
|
"mochainon": "^2.0.0",
|
||||||
"pkg": "~4.3.8",
|
"pkg": "4.4.0",
|
||||||
"prettier": "1.17.0",
|
"prettier": "1.17.0",
|
||||||
"publish-release": "^1.6.0",
|
"publish-release": "^1.6.0",
|
||||||
"resin-lint": "^3.0.1",
|
"resin-lint": "^3.0.1",
|
||||||
|
37
patches/pkg+4.4.0.patch
Normal file
37
patches/pkg+4.4.0.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
diff --git a/node_modules/pkg/lib-es5/packer.js b/node_modules/pkg/lib-es5/packer.js
|
||||||
|
index 7295bb6..76805a3 100644
|
||||||
|
--- a/node_modules/pkg/lib-es5/packer.js
|
||||||
|
+++ b/node_modules/pkg/lib-es5/packer.js
|
||||||
|
@@ -128,6 +128,7 @@ function _default({
|
||||||
|
const newStat = Object.assign({}, value);
|
||||||
|
newStat.isFileValue = value.isFile();
|
||||||
|
newStat.isDirectoryValue = value.isDirectory();
|
||||||
|
+ newStat.isSocketValue = value.isSocket();
|
||||||
|
const buffer = Buffer.from(JSON.stringify(newStat));
|
||||||
|
stripes.push({
|
||||||
|
snap,
|
||||||
|
diff --git a/node_modules/pkg/prelude/bootstrap.js b/node_modules/pkg/prelude/bootstrap.js
|
||||||
|
index 216579e..4904726 100644
|
||||||
|
--- a/node_modules/pkg/prelude/bootstrap.js
|
||||||
|
+++ b/node_modules/pkg/prelude/bootstrap.js
|
||||||
|
@@ -866,8 +866,10 @@ function payloadFileSync (pointer) {
|
||||||
|
|
||||||
|
var isFileValue = s.isFileValue;
|
||||||
|
var isDirectoryValue = s.isDirectoryValue;
|
||||||
|
+ var isSocketValue = s.isSocketValue;
|
||||||
|
delete s.isFileValue;
|
||||||
|
delete s.isDirectoryValue;
|
||||||
|
+ delete s.isSocketValue;
|
||||||
|
|
||||||
|
s.isFile = function () {
|
||||||
|
return isFileValue;
|
||||||
|
@@ -875,6 +877,9 @@ function payloadFileSync (pointer) {
|
||||||
|
s.isDirectory = function () {
|
||||||
|
return isDirectoryValue;
|
||||||
|
};
|
||||||
|
+ s.isSocket = function () {
|
||||||
|
+ return isSocketValue;
|
||||||
|
+ };
|
||||||
|
s.isSymbolicLink = function () {
|
||||||
|
return false;
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user