Commit ba5f6d7e by sikang

bug fix

parent 1197cc22
......@@ -67,8 +67,10 @@ class PackageGarble:
while size > 0:
if mp_path not in self.pkg_mapping.keys():
self.pkg_mapping[mp_path] = random_str
#添加一个结尾标识,避免有路径中间有重复的包名被替换
mp_path += "**"
mp_path = mp_path.replace(
".%s" % mp_path.split(".")[size-1], "")
".%s**" % mp_path.split(".")[size-1], "")
random_str = random_str.replace(
".%s" % random_str.split(".")[size-1], "")
size -= 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment