maya-umbrella 0.6.0__tar.gz → 0.6.1__tar.gz
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 maya-umbrella might be problematic. Click here for more details.
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/PKG-INFO +1 -1
- maya_umbrella-0.6.1/maya_umbrella/__version__.py +1 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/scanner.py +8 -3
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/pyproject.toml +2 -2
- maya_umbrella-0.6.0/maya_umbrella/__version__.py +0 -1
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/LICENSE +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/README.md +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/__init__.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/cleaner.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/collector.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/constants.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/defender.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/filesystem.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/hooks/__init__.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/hooks/delete_turtle.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/hooks/delete_unknown_plugin_node.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/hooks/fix_model_panel.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/hooks/fix_on_model_change_3dc.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/i18n.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/locales/en_US.json +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/locales/zh_CN.json +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/log.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/maya_funs.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/signatures.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/vaccine.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/vaccines/__init__.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/vaccines/vaccine1.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/vaccines/vaccine2.py +0 -0
- {maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/vaccines/vaccine3.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.6.1"
|
|
@@ -38,6 +38,7 @@ class MayaVirusScanner(object):
|
|
|
38
38
|
self.defender = None
|
|
39
39
|
self.output_path = output_path
|
|
40
40
|
self._failed_files = []
|
|
41
|
+
self._reference_files = []
|
|
41
42
|
self._fixed_files = []
|
|
42
43
|
# Custom env.
|
|
43
44
|
self._env = env or {
|
|
@@ -63,6 +64,9 @@ class MayaVirusScanner(object):
|
|
|
63
64
|
self.defender = defender
|
|
64
65
|
for maya_file in files:
|
|
65
66
|
self._fix(maya_file)
|
|
67
|
+
while len(self._reference_files) > 0:
|
|
68
|
+
for ref in self._reference_files:
|
|
69
|
+
self._fix(ref)
|
|
66
70
|
return self._fixed_files
|
|
67
71
|
|
|
68
72
|
def scan_files_from_file(self, text_file):
|
|
@@ -96,6 +100,7 @@ class MayaVirusScanner(object):
|
|
|
96
100
|
shutil.copy2(maya_file, backup_path)
|
|
97
101
|
cmds.file(s=True, f=True)
|
|
98
102
|
self._fixed_files.append(maya_file)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
self.
|
|
103
|
+
self._reference_files.extend(self.defender.collector.infected_reference_files)
|
|
104
|
+
if maya_file in self._reference_files:
|
|
105
|
+
self._reference_files.remove(maya_file)
|
|
106
|
+
cmds.file(new=True, force=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "maya_umbrella"
|
|
3
|
-
version = "0.6.
|
|
3
|
+
version = "0.6.1"
|
|
4
4
|
description = "Check and fix maya virus."
|
|
5
5
|
homepage = "https://github.com/loonghao/maya_umbrella"
|
|
6
6
|
repository = "https://github.com/loonghao/maya_umbrella"
|
|
@@ -36,7 +36,7 @@ nox = { version = "^2024.3.2", python = ">=3.8.1,<3.11" }
|
|
|
36
36
|
|
|
37
37
|
[tool.commitizen]
|
|
38
38
|
name = "cz_conventional_commits"
|
|
39
|
-
version = "0.6.
|
|
39
|
+
version = "0.6.1"
|
|
40
40
|
tag_format = "v$version"
|
|
41
41
|
version_files = [
|
|
42
42
|
"pyproject.toml:version",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.6.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maya_umbrella-0.6.0 → maya_umbrella-0.6.1}/maya_umbrella/hooks/delete_unknown_plugin_node.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|