@scrypted/server 0.7.38 → 0.7.39

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.

Potentially problematic release.


This version of @scrypted/server might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/server",
3
- "version": "0.7.38",
3
+ "version": "0.7.39",
4
4
  "description": "",
5
5
  "dependencies": {
6
6
  "@mapbox/node-pre-gyp": "^1.0.10",
@@ -423,7 +423,18 @@ class PluginRemote:
423
423
  pass
424
424
 
425
425
  if need_pip:
426
- shutil.rmtree(python_prefix)
426
+ try:
427
+ for de in os.listdir(plugin_volume):
428
+ if de.startswith('linux') or de.startswith('darwin') or de.startswith('win32') or de.startswith('python') or de.startswith('node'):
429
+ filePath = os.path.join(plugin_volume, de)
430
+ print('Removing old dependencies: %s' % filePath)
431
+ try:
432
+ shutil.rmtree(filePath)
433
+ except:
434
+ pass
435
+ except:
436
+ pass
437
+
427
438
  os.makedirs(python_prefix)
428
439
 
429
440
  print('requirements.txt (outdated)')