pinokiod 2.15.64 → 2.15.66
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/bin/index.js +5 -3
- package/package.json +1 -1
package/kernel/bin/index.js
CHANGED
|
@@ -202,9 +202,11 @@ class Bin {
|
|
|
202
202
|
|
|
203
203
|
// write to pipconfig if it doesn't exist
|
|
204
204
|
if (this.kernel.homedir) {
|
|
205
|
-
|
|
205
|
+
try {
|
|
206
|
+
await this.refreshInstalled()
|
|
207
|
+
} catch (e) {
|
|
206
208
|
console.log("RefreshInstalled Error", e)
|
|
207
|
-
}
|
|
209
|
+
}
|
|
208
210
|
let pipconfig_path = path.resolve(this.kernel.homedir, "pipconfig")
|
|
209
211
|
let pipconfig_exists = await this.kernel.api.exists(pipconfig_path)
|
|
210
212
|
// if not, create one
|
|
@@ -477,7 +479,7 @@ class Bin {
|
|
|
477
479
|
}
|
|
478
480
|
}
|
|
479
481
|
}
|
|
480
|
-
this.init()
|
|
482
|
+
await this.init()
|
|
481
483
|
}
|
|
482
484
|
async sh(params, ondata) {
|
|
483
485
|
let response = await this.kernel.shell.run(params, null, ondata)
|