pinokiod 3.6.6 → 3.6.7

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.
@@ -16,7 +16,7 @@ class Ffmpeg {
16
16
  }, ondata)
17
17
  }
18
18
  async installed() {
19
- return this.kernel.bin.installed.conda.has("ffmpeg")
19
+ return this.kernel.bin.installed.conda.has("ffmpeg") && this.kernel.bin.installed.conda_versions.ffmpeg === "5.1.2"
20
20
  }
21
21
  async uninstall(req, ondata) {
22
22
  await this.kernel.bin.exec({
@@ -248,6 +248,7 @@ class Bin {
248
248
  let start
249
249
  let conda_check = {}
250
250
  let conda = new Set()
251
+ let conda_versions = {}
251
252
 
252
253
  //////////////////////////////////////////////////////////////////
253
254
  // exception handling
@@ -288,6 +289,7 @@ class Bin {
288
289
  let name = chunks[0]
289
290
  let version = chunks[1]
290
291
  conda.add(name)
292
+ conda_versions[name] = version
291
293
  if (name === "conda") {
292
294
  //if (String(version) === "24.11.1") {
293
295
  if (String(version) === "24.11.3") {
@@ -331,6 +333,8 @@ class Bin {
331
333
  }
332
334
  }
333
335
  this.installed.conda = conda
336
+ this.installed.conda_versions = conda_versions
337
+ console.log("this.installed", this.installed)
334
338
  }
335
339
  async refreshInstalled() {
336
340
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.6.6",
3
+ "version": "3.6.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {