pinokiod 3.2.72 → 3.2.73

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.
@@ -62,8 +62,11 @@ class Conda {
62
62
  create_default_packages:
63
63
  - python=3.10`)
64
64
  }
65
- await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.7.1
66
- conda-libmamba-solver=24.7.0`)
65
+ let pinned_exists = await this.kernel.exists("bin/miniconda/conda-meta")
66
+ if (pinned_exists) {
67
+ await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.7.1
68
+ conda-libmamba-solver=24.7.0`)
69
+ }
67
70
  }
68
71
  }
69
72
  // async init() {
@@ -100,6 +103,13 @@ conda-libmamba-solver=24.7.0`)
100
103
  await this.kernel.bin.exec({ message: cmd, conda: { skip: true } }, (stream) => {
101
104
  ondata(stream)
102
105
  })
106
+
107
+ // set pinned
108
+ let pinned_exists = await this.kernel.exists("bin/miniconda/conda-meta")
109
+ if (pinned_exists) {
110
+ await fs.promises.writeFile(this.kernel.path('bin/miniconda/conda-meta/pinned'), `conda=24.7.1
111
+ conda-libmamba-solver=24.7.0`)
112
+ }
103
113
  //// await this.activate()
104
114
  // await fs.promises.writeFile(this.kernel.bin.path('miniconda/condarc'), `channels:
105
115
  // - conda-forge
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.72",
3
+ "version": "3.2.73",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {