maya-umbrella 0.13.0__py2.py3-none-any.whl → 0.14.0__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.
@@ -1 +1 @@
1
- __version__ = "0.13.0"
1
+ __version__ = "0.14.0"
maya_umbrella/cleaner.py CHANGED
@@ -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
 
@@ -1,19 +1,20 @@
1
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"
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"
19
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
  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
@@ -1,5 +1,5 @@
1
1
  maya_umbrella/__init__.py,sha256=rcCnFWmELeJsGoKvLHyzC_GmZu-eT1QXjQCHRGj6HuQ,529
2
- maya_umbrella/__version__.py,sha256=DgpLNbv0e1LIEOOe54Db8_390i9pelMEFEnsBsNmyhA,23
2
+ maya_umbrella/__version__.py,sha256=EVkhkQ4Bbkx92jXuCmt2_JDjQExgnrq2d3eBQIP9UAo,23
3
3
  maya_umbrella/_vendor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  maya_umbrella/_vendor/atomicwrites/LICENSE,sha256=h4Mp8L2HitAVEpzovagvSB6G7C6Agx6QnA1nFx2SLnM,1069
5
5
  maya_umbrella/_vendor/atomicwrites/__init__.py,sha256=myvxvKRBb7vebPTSUiAopsRrvsm6VojiAvET1xohT-4,6970
@@ -10,7 +10,7 @@ maya_umbrella/_vendor/six/moves/configparser.pyi,sha256=OOloYod0yM3pPe0YlqnFSkiW
10
10
  maya_umbrella/_vendor/six.LICENSE,sha256=i7hQxWWqOJ_cFvOkaWWtI9gq3_YPI5P8J2K2MYXo5sk,1066
11
11
  maya_umbrella/_vendor/six.py,sha256=TOOfQi7nFGfMrIvtdr6wX4wyHH8M7aknmuLfo2cBBrM,34549
12
12
  maya_umbrella/_vendor/vendor.txt,sha256=9yyM8r0ibzfkXqgcAehZId0IsvELLV18YTxi6cwF7KA,32
13
- maya_umbrella/cleaner.py,sha256=Xj8BU0gohvh3E7RcDwQw_xryCzN5RBYGH9UTPVxiMPA,5045
13
+ maya_umbrella/cleaner.py,sha256=T_-QgF7Or9Bqoa463YZm2trhwGu0-KfbyiozXj3G86o,5384
14
14
  maya_umbrella/collector.py,sha256=SiC-wpDjer7w6ofsyWTFJmUF8pPz233xDXeANNz-LrY,13119
15
15
  maya_umbrella/constants.py,sha256=SuD8OP8e0Kh3a9ohyS5_MXjo5pHNQ8MWEPtJ6puZfIU,130
16
16
  maya_umbrella/defender.py,sha256=eT4uK23uOB1V8Y3uiaU1C2Tp-s1SngrGo3TWDbSIVJY,6008
@@ -22,8 +22,8 @@ maya_umbrella/hooks/fix_model_panel.py,sha256=dLuMOz5uQ1nqAboNWMCx-Bi_gHM3FQNTlG
22
22
  maya_umbrella/hooks/fix_no_scene_name.py,sha256=isE7_uOcByVbg9YG6FenzmJrodoteo8sheVzyDnrFqY,381
23
23
  maya_umbrella/hooks/fix_on_model_change_3dc.py,sha256=o4WEQPcHNzaTMXdNnHZWWNCYlHfLxcSFYXR4YW0ZLwk,484
24
24
  maya_umbrella/i18n.py,sha256=aWaIncHh5Zq02hErMbHHLoQm_8Fu-YfBWQ15sUgsBJk,2642
25
- maya_umbrella/locales/en_US.json,sha256=LW2gPgO2YJIYR5UfcIBuxW_DS7rf4gkjeVuADqs1V5s,962
26
- maya_umbrella/locales/zh_CN.json,sha256=UsuRN2yaxxc9LE-7NQkbMqrkjXjNhNegS0QRkQLSTiE,1006
25
+ maya_umbrella/locales/en_US.json,sha256=Kcgg5BrNFSw7kUFkbepRIhXcUek4Kb0m43b0NmAkT2g,1095
26
+ maya_umbrella/locales/zh_CN.json,sha256=eQbsZsUj87B5HhHi_usTNGzwo01MLjkHKM11KWhhSwM,1056
27
27
  maya_umbrella/log.py,sha256=SLgBPpnDpkDhOU94UHNPqanhKr6aZiJn4XdwIsoXD4M,1355
28
28
  maya_umbrella/maya_funs.py,sha256=_4LaMO4cRTCcbgNj2ei7UtSLAnCRY_ylHiLGKgvM4sE,3652
29
29
  maya_umbrella/scanner.py,sha256=1-GY-Jx1iECnAo-L2Lw5e5t5zaQsMwWDH0A4TOjlIww,4428
@@ -33,7 +33,7 @@ maya_umbrella/vaccines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
33
33
  maya_umbrella/vaccines/vaccine1.py,sha256=WLo1uJElTLSjVCf5CBtRNU4HKs63my5mkHiGqTfnNEE,489
34
34
  maya_umbrella/vaccines/vaccine2.py,sha256=qYiI_-BSojgN7j4esYCGBDLeyBSneDOGUwZhKHccxh8,2170
35
35
  maya_umbrella/vaccines/vaccine3.py,sha256=f1jO9pyyZ_Ep18HR-fCQfGEi-TnNKXzjdCi9ORSZUx0,3613
36
- maya_umbrella-0.13.0.dist-info/LICENSE,sha256=tJf0Pz8q_65AjEkm3872K1cl4jGil28vJO5Ko_LhUqc,1060
37
- maya_umbrella-0.13.0.dist-info/METADATA,sha256=3COg7DKGNx241YmlU6aVJOssLpRmpsKeLXSFa-I2Sx0,11722
38
- maya_umbrella-0.13.0.dist-info/WHEEL,sha256=IrRNNNJ-uuL1ggO5qMvT1GGhQVdQU54d6ZpYqEZfEWo,92
39
- maya_umbrella-0.13.0.dist-info/RECORD,,
36
+ maya_umbrella-0.14.0.dist-info/LICENSE,sha256=tJf0Pz8q_65AjEkm3872K1cl4jGil28vJO5Ko_LhUqc,1060
37
+ maya_umbrella-0.14.0.dist-info/METADATA,sha256=CPasuVog_jZMUHuIdjwgvGcgItpIYkrV3HXP7are7Vg,11722
38
+ maya_umbrella-0.14.0.dist-info/WHEEL,sha256=IrRNNNJ-uuL1ggO5qMvT1GGhQVdQU54d6ZpYqEZfEWo,92
39
+ maya_umbrella-0.14.0.dist-info/RECORD,,