pinokiod 7.5.4 → 7.5.5

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.
@@ -452,8 +452,6 @@ class Bin {
452
452
  let res
453
453
  let lines
454
454
  this.installed.conda = new Set()
455
- this.installed.conda_versions = {}
456
- this.installed.conda_builds = {}
457
455
  if (conda_exists) {
458
456
  // Try 3 times, because sometimes conda just silently quits with no error message
459
457
  for(let i=0; i<5; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "7.5.4",
3
+ "version": "7.5.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -5990,13 +5990,13 @@ class Server {
5990
5990
  if (home) {
5991
5991
  if (version === this.version.pinokiod) {
5992
5992
  console.log("version up to date")
5993
- } else if (!(await this.kernel.exists("bin/miniforge/conda-meta"))) {
5993
+ } else if (!(await fse.pathExists(path.resolve(home, "bin/miniforge/conda-meta")))) {
5994
5994
  console.warn("[WARN] Managed home refresh deferred until Miniforge is installed")
5995
5995
  } else {
5996
5996
  // For every update, this gets triggered exactly once.
5997
5997
  // 1. first mkdir if it doesn't exist (this step is irrelevant since at this point the home dir will exist)
5998
5998
 
5999
- let exists = await this.kernel.exists(home)
5999
+ let exists = await fse.pathExists(home)
6000
6000
  if (!exists) {
6001
6001
  await fs.promises.mkdir(home, { recursive: true })
6002
6002
  }
@@ -6004,7 +6004,7 @@ class Server {
6004
6004
  needsManagedRefresh = true
6005
6005
  console.log("[TRY] Updating to the new version")
6006
6006
  let envPath = path.resolve(home, "ENVIRONMENT")
6007
- let envExists = await this.kernel.exists(envPath)
6007
+ let envExists = await fse.pathExists(envPath)
6008
6008
  if (!envExists) {
6009
6009
  let str = await Environment.ENV("system", home, this.kernel)
6010
6010
  await fs.promises.writeFile(envPath, str)