maya-umbrella 0.6.0__py2.py3-none-any.whl → 0.6.2__py2.py3-none-any.whl
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/__version__.py +1 -1
- maya_umbrella/scanner.py +7 -3
- {maya_umbrella-0.6.0.dist-info → maya_umbrella-0.6.2.dist-info}/METADATA +4 -2
- {maya_umbrella-0.6.0.dist-info → maya_umbrella-0.6.2.dist-info}/RECORD +6 -6
- {maya_umbrella-0.6.0.dist-info → maya_umbrella-0.6.2.dist-info}/LICENSE +0 -0
- {maya_umbrella-0.6.0.dist-info → maya_umbrella-0.6.2.dist-info}/WHEEL +0 -0
maya_umbrella/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.6.
|
|
1
|
+
__version__ = "0.6.2"
|
maya_umbrella/scanner.py
CHANGED
|
@@ -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,8 @@ class MayaVirusScanner(object):
|
|
|
63
64
|
self.defender = defender
|
|
64
65
|
for maya_file in files:
|
|
65
66
|
self._fix(maya_file)
|
|
67
|
+
for ref in self._reference_files:
|
|
68
|
+
self._fix(ref)
|
|
66
69
|
return self._fixed_files
|
|
67
70
|
|
|
68
71
|
def scan_files_from_file(self, text_file):
|
|
@@ -88,7 +91,9 @@ class MayaVirusScanner(object):
|
|
|
88
91
|
maya_funs.open_maya_file(maya_file)
|
|
89
92
|
self.defender.collect()
|
|
90
93
|
except Exception:
|
|
94
|
+
self.logger.debug("failed to open maya file: {maya_file}".format(maya_file=maya_file))
|
|
91
95
|
self._failed_files.append(maya_file)
|
|
96
|
+
|
|
92
97
|
if self.defender.have_issues:
|
|
93
98
|
self.defender.fix()
|
|
94
99
|
backup_path = get_backup_path(maya_file, root_path=self.output_path)
|
|
@@ -96,6 +101,5 @@ class MayaVirusScanner(object):
|
|
|
96
101
|
shutil.copy2(maya_file, backup_path)
|
|
97
102
|
cmds.file(s=True, f=True)
|
|
98
103
|
self._fixed_files.append(maya_file)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
self._fix(ref)
|
|
104
|
+
self._reference_files.extend(self.defender.collector.infected_reference_files)
|
|
105
|
+
cmds.file(new=True, force=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: maya_umbrella
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.2
|
|
4
4
|
Summary: Check and fix maya virus.
|
|
5
5
|
Home-page: https://github.com/loonghao/maya_umbrella
|
|
6
6
|
License: MIT
|
|
@@ -43,7 +43,7 @@ Description-Content-Type: text/markdown
|
|
|
43
43
|
[](https://img.shields.io/badge/maya-2018-green)
|
|
44
44
|
|
|
45
45
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
46
|
-
[](#contributors-)
|
|
47
47
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
48
48
|
|
|
49
49
|
This tool is designed to provide a robust solution for identifying and resolving any potential viruses within Autodesk
|
|
@@ -193,6 +193,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
193
193
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/lingyunfx"><img src="https://avatars.githubusercontent.com/u/73666629?v=4?s=100" width="100px;" alt="lingyunfx"/><br /><sub><b>lingyunfx</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=lingyunfx" title="Tests">⚠️</a></td>
|
|
194
194
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/yjjjj"><img src="https://avatars.githubusercontent.com/u/12741735?v=4?s=100" width="100px;" alt="yjjjj"/><br /><sub><b>yjjjj</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=yjjjj" title="Tests">⚠️</a> <a href="https://github.com/loonghao/maya_umbrella/commits?author=yjjjj" title="Code">💻</a></td>
|
|
195
195
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/uncleschen"><img src="https://avatars.githubusercontent.com/u/37014389?v=4?s=100" width="100px;" alt="Unclechen"/><br /><sub><b>Unclechen</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=uncleschen" title="Tests">⚠️</a></td>
|
|
196
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/CGRnDStudio"><img src="https://avatars.githubusercontent.com/u/8320794?v=4?s=100" width="100px;" alt="andyvfx"/><br /><sub><b>andyvfx</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=CGRnDStudio" title="Code">💻</a></td>
|
|
197
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/cundesi"><img src="https://avatars.githubusercontent.com/u/15829469?v=4?s=100" width="100px;" alt="cundesi"/><br /><sub><b>cundesi</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=cundesi" title="Code">💻</a></td>
|
|
196
198
|
</tr>
|
|
197
199
|
</tbody>
|
|
198
200
|
</table>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
maya_umbrella/__init__.py,sha256=uHgbJ-AL3NOfDNB55_7a4_c-OAuP4X8eQ_Yi1udaA0I,401
|
|
2
|
-
maya_umbrella/__version__.py,sha256=
|
|
2
|
+
maya_umbrella/__version__.py,sha256=jFlbxEJFS0G44LE-yXXVSwXACA1J_NyYDk5E20_2zpc,22
|
|
3
3
|
maya_umbrella/cleaner.py,sha256=5EC3w4qRkIsr9AIZneEV8ljhxaOw385Gj2C2KTrzyJg,5044
|
|
4
4
|
maya_umbrella/collector.py,sha256=rAFmvY8Isdle89ezn2-H36hSJd77iBvPBLRPzruCycA,13111
|
|
5
5
|
maya_umbrella/constants.py,sha256=2sl0dL0U82mwu-Msda9B8-USxr89Wu2yu6SYiuaaJZk,539
|
|
@@ -15,14 +15,14 @@ maya_umbrella/locales/en_US.json,sha256=LW2gPgO2YJIYR5UfcIBuxW_DS7rf4gkjeVuADqs1
|
|
|
15
15
|
maya_umbrella/locales/zh_CN.json,sha256=UsuRN2yaxxc9LE-7NQkbMqrkjXjNhNegS0QRkQLSTiE,1006
|
|
16
16
|
maya_umbrella/log.py,sha256=IJweFEBTThL6_mW86jAAPKyWNvI79CrMifs5vO3t6ks,1338
|
|
17
17
|
maya_umbrella/maya_funs.py,sha256=WDvREjzLfEsPND0RU-2ErbWgsU6MsILqVBW219p8sZo,3394
|
|
18
|
-
maya_umbrella/scanner.py,sha256=
|
|
18
|
+
maya_umbrella/scanner.py,sha256=Souu4iFrYPJVV34actQf69Po6hHhGDv_7cRuKtGoygc,3921
|
|
19
19
|
maya_umbrella/signatures.py,sha256=RkEXChch7tdqA9Yq6YQ8AMnK2ra6ih0dfnpeZy5FkYs,354
|
|
20
20
|
maya_umbrella/vaccine.py,sha256=aBW6pdT4tD4OMBPZ-d3E4_n16Rylz-2gb7JWzMZVPK0,1022
|
|
21
21
|
maya_umbrella/vaccines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
maya_umbrella/vaccines/vaccine1.py,sha256=WLo1uJElTLSjVCf5CBtRNU4HKs63my5mkHiGqTfnNEE,489
|
|
23
23
|
maya_umbrella/vaccines/vaccine2.py,sha256=yvHpnrQ6Jts9_zCy8WRJcbxz0CVSRAPkn2vF552atQs,2123
|
|
24
24
|
maya_umbrella/vaccines/vaccine3.py,sha256=d89Ocj1AmsZt9YJjggjDJqAWXcckGLMl-6u8jXeAPjg,3493
|
|
25
|
-
maya_umbrella-0.6.
|
|
26
|
-
maya_umbrella-0.6.
|
|
27
|
-
maya_umbrella-0.6.
|
|
28
|
-
maya_umbrella-0.6.
|
|
25
|
+
maya_umbrella-0.6.2.dist-info/LICENSE,sha256=tJf0Pz8q_65AjEkm3872K1cl4jGil28vJO5Ko_LhUqc,1060
|
|
26
|
+
maya_umbrella-0.6.2.dist-info/METADATA,sha256=V6AkULsn8ON_lVjzw8my2awAfrN3UBLae9kIkT_1p04,9851
|
|
27
|
+
maya_umbrella-0.6.2.dist-info/WHEEL,sha256=IrRNNNJ-uuL1ggO5qMvT1GGhQVdQU54d6ZpYqEZfEWo,92
|
|
28
|
+
maya_umbrella-0.6.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|