maya-umbrella 0.13.0__tar.gz → 0.14.0__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.

Files changed (41) hide show
  1. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/PKG-INFO +1 -1
  2. maya_umbrella-0.14.0/maya_umbrella/__version__.py +1 -0
  3. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/cleaner.py +7 -0
  4. maya_umbrella-0.14.0/maya_umbrella/locales/en_US.json +20 -0
  5. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/locales/zh_CN.json +4 -3
  6. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/pyproject.toml +2 -2
  7. maya_umbrella-0.13.0/maya_umbrella/__version__.py +0 -1
  8. maya_umbrella-0.13.0/maya_umbrella/locales/en_US.json +0 -19
  9. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/LICENSE +0 -0
  10. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/README.md +0 -0
  11. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/__init__.py +0 -0
  12. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/_vendor/__init__.py +0 -0
  13. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/_vendor/atomicwrites/LICENSE +0 -0
  14. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/_vendor/atomicwrites/__init__.py +0 -0
  15. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/_vendor/atomicwrites.pyi +0 -0
  16. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/_vendor/six/__init__.pyi +0 -0
  17. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/_vendor/six/moves/__init__.pyi +0 -0
  18. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/_vendor/six/moves/configparser.pyi +0 -0
  19. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/_vendor/six.LICENSE +0 -0
  20. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/_vendor/six.py +0 -0
  21. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/_vendor/vendor.txt +0 -0
  22. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/collector.py +0 -0
  23. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/constants.py +0 -0
  24. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/defender.py +0 -0
  25. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/filesystem.py +0 -0
  26. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/hooks/__init__.py +0 -0
  27. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/hooks/delete_turtle.py +0 -0
  28. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/hooks/delete_unknown_plugin_node.py +0 -0
  29. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/hooks/fix_model_panel.py +0 -0
  30. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/hooks/fix_no_scene_name.py +0 -0
  31. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/hooks/fix_on_model_change_3dc.py +0 -0
  32. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/i18n.py +0 -0
  33. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/log.py +0 -0
  34. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/maya_funs.py +0 -0
  35. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/scanner.py +0 -0
  36. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/signatures.py +0 -0
  37. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/vaccine.py +0 -0
  38. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/vaccines/__init__.py +0 -0
  39. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/vaccines/vaccine1.py +0 -0
  40. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/vaccines/vaccine2.py +0 -0
  41. {maya_umbrella-0.13.0 → maya_umbrella-0.14.0}/maya_umbrella/vaccines/vaccine3.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: maya_umbrella
3
- Version: 0.13.0
3
+ Version: 0.14.0
4
4
  Summary: Check and fix maya virus.
5
5
  Home-page: https://github.com/loonghao/maya_umbrella
6
6
  License: MIT
@@ -0,0 +1 @@
1
+ __version__ = "0.14.0"
@@ -22,6 +22,7 @@ class MayaVirusCleaner(object):
22
22
  translator (Translator): Translator object for translation purposes.
23
23
  collector (MayaVirusCollector): MayaVirusCollector object for collecting issues.
24
24
  """
25
+
25
26
  def __init__(self, collector, logger=None):
26
27
  """Initialize the MayaVirusCleaner.
27
28
 
@@ -50,6 +51,9 @@ class MayaVirusCleaner(object):
50
51
  def fix_malicious_files(self):
51
52
  """Fix malicious files."""
52
53
  for file_ in self.collector.malicious_files:
54
+ if not os.access(file_, os.W_OK):
55
+ self.logger.debug(self.translator.translate("file_not_writable", name=file_))
56
+ continue
53
57
  if os.path.exists(file_):
54
58
  if os.path.isfile(file_):
55
59
  self.logger.debug(self.translator.translate("remove_file", name=file_))
@@ -94,6 +98,9 @@ class MayaVirusCleaner(object):
94
98
  """Fix infected files."""
95
99
  for file_path in self.collector.infected_files:
96
100
  self.logger.info(self.translator.translate("fix_infected_files", name=file_path))
101
+ if not os.access(file_path, os.W_OK):
102
+ self.logger.debug(self.translator.translate("file_not_writable", name=file_path))
103
+ continue
97
104
  remove_virus_file_by_signature(file_path, FILE_VIRUS_SIGNATURES)
98
105
  self.collector.remove_infected_file(file_path)
99
106
 
@@ -0,0 +1,20 @@
1
+ {
2
+ "start_fix_issues": "Start fixing all problems related to Maya virus $name",
3
+ "finish_fix_issues": "Repair completed.",
4
+ "init_message": "Successfully loaded <hl>maya_umbrella</hl> protection.",
5
+ "init_standalone_message": "----------------------- successfully loaded maya_umbrella-----------------------",
6
+ "report_issue": "$name: Maliciously infected!",
7
+ "infected_nodes": "Infected node: $name:",
8
+ "bad_files": "Files to be cleaned up: $name",
9
+ "infected_script_jobs": "Infected Script jobs: $name",
10
+ "infected_files": "Infected file: $name",
11
+ "infected_reference_files": "Infected reference file: $name",
12
+ "fix_infected_files": "Clean up infected files: $name",
13
+ "fix_infected_nodes": "Delete infected node: $name",
14
+ "fix_infected_reference_nodes": "Attempt to repair the infected reference node: $name",
15
+ "delete": "Delete infected files: $name",
16
+ "remove_file": "Delete file: $name",
17
+ "remove_path": "Delete folder: $name",
18
+ "fix_script_job": "Delete infected node: $name",
19
+ "file_not_writable": "The file is not writable: $name"
20
+ }
@@ -6,8 +6,8 @@
6
6
  "report_issue": "$name:被恶意感染!",
7
7
  "infected_nodes": "被感染节点:$name: ",
8
8
  "bad_files": "需要被清理的文件:$name",
9
- "infected_script_jobs": "被感染的script jobs:$name",
10
- "infected_files": "被感染的脚本:$name",
9
+ "infected_script_jobs": "被感染的Script jobs:$name",
10
+ "infected_files": "被感染的文件:$name",
11
11
  "infected_reference_files": "被感染的参考文件:$name",
12
12
  "fix_infected_files": "清理被感染的文件:$name",
13
13
  "fix_infected_nodes": "删除被感染的节点:$name",
@@ -15,5 +15,6 @@
15
15
  "delete": "删除感染文件:$name",
16
16
  "remove_file": "删除文件:$name",
17
17
  "remove_path": "删除文件夹:$name",
18
- "fix_script_job": "删除被感染的节点:$name"
18
+ "fix_script_job": "删除被感染的节点:$name",
19
+ "file_not_writable": "文件不可写:$name"
19
20
  }
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "maya_umbrella"
3
- version = "0.13.0"
3
+ version = "0.14.0"
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.13.0"
39
+ version = "0.14.0"
40
40
  tag_format = "v$version"
41
41
  version_files = [
42
42
  "pyproject.toml:version",
@@ -1 +0,0 @@
1
- __version__ = "0.13.0"
@@ -1,19 +0,0 @@
1
- {
2
- "start_fix_issues": "Start fixing all problems related to Maya virus $name",
3
- "finish_fix_issues": "Done.",
4
- "init_message": "Successfully loaded <hl>maya_umbrella</hl> under protection.",
5
- "init_standalone_message": "-----------------------Loading maya_umbrella successfully----------------------",
6
- "report_issue": "$name: Infected by Malware!",
7
- "infected_nodes": "Infected nodes: $name: ",
8
- "bad_files": "Bad files: $name",
9
- "infected_script_jobs": "Infected script jobs: $name",
10
- "infected_files": "Infected files: $name",
11
- "infected_reference_files": "Infected reference files: $name",
12
- "fix_infected_files": "Clean infected files: $name",
13
- "fix_infected_nodes": "Delete infected nodes:$name",
14
- "fix_infected_reference_nodes": "trying fix infected nodes from reference:$name",
15
- "delete": "Deleting: $name",
16
- "remove_file": "Deleting file:$name",
17
- "remove_path": "Deleting path:$name",
18
- "fix_script_job": "Kill script job: %s"
19
- }
File without changes
File without changes