projects
/
webi-installers
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78e8eec
)
check for package existence first
author
AJ ONeal
<aj@therootcompany.com>
Sat, 4 Jul 2020 23:30:45 +0000
(23:30 +0000)
committer
AJ ONeal
<aj@therootcompany.com>
Sat, 4 Jul 2020 23:30:45 +0000
(23:30 +0000)
_webi/packages.js
patch
|
blob
|
history
diff --git
a/_webi/packages.js
b/_webi/packages.js
index 279e94056eb4f605b65062c923d18324c2cb080c..bdfec061f18c79432790799549e6a9474935571f 100644
(file)
--- a/
_webi/packages.js
+++ b/
_webi/packages.js
@@
-35,6
+35,11
@@
pkgs.create = function (Pkgs, basepath) {
};
Pkgs.get = function (node) {
+ return fs.promises.access(path.join(basepath, node)).then(function () {
+ return Pkgs._get(node);
+ });
+ };
+ Pkgs._get = function (node) {
var yash = path.join(basepath, node, 'package.yash');
var curlbash = path.join(basepath, node, 'install.sh');
var readme = path.join(basepath, node, 'README.md');