pinokiod 3.9.29 → 3.9.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/plugin.js +2 -2
- package/kernel/prototype.js +1 -1
- package/package.json +1 -1
package/kernel/plugin.js
CHANGED
|
@@ -4,7 +4,7 @@ class Plugin {
|
|
|
4
4
|
this.kernel = kernel
|
|
5
5
|
}
|
|
6
6
|
async init() {
|
|
7
|
-
if (this.kernel.bin.installed.conda.has("git")) {
|
|
7
|
+
if (this.kernel.bin.installed && this.kernel.bin.installed.conda && this.kernel.bin.installed.conda.has("git")) {
|
|
8
8
|
// if ~/pinokio/prototype doesn't exist, clone
|
|
9
9
|
let exists = await this.kernel.exists("plugin")
|
|
10
10
|
if (!exists) {
|
|
@@ -22,7 +22,7 @@ class Plugin {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
async update() {
|
|
25
|
-
if (this.kernel.bin.installed.conda.has("git")) {
|
|
25
|
+
if (this.kernel.bin.installed && this.kernel.bin.installed.conda && this.kernel.bin.installed.conda.has("git")) {
|
|
26
26
|
let exists = await this.kernel.exists("plugin")
|
|
27
27
|
if (!exists) {
|
|
28
28
|
await this.kernel.exec({
|
package/kernel/prototype.js
CHANGED
|
@@ -9,7 +9,7 @@ class Proto {
|
|
|
9
9
|
async init() {
|
|
10
10
|
this.items = []
|
|
11
11
|
this.kv = {}
|
|
12
|
-
if (this.kernel.bin.installed.conda.has("git")) {
|
|
12
|
+
if (this.kernel.bin.installed && this.kernel.bin.installed.conda && this.kernel.bin.installed.conda.has("git")) {
|
|
13
13
|
|
|
14
14
|
// if ~/pinokio/prototype doesn't exist, clone
|
|
15
15
|
let exists = await this.kernel.exists("prototype")
|