mirror of https://github.com/mvt-project/mvt.git
Renamed packages.json to apks.json to avoid conflicts with other module
This commit is contained in:
parent
7edf147112
commit
99d539b040
|
@ -59,8 +59,8 @@ class DownloadAPKs(AndroidExtraction):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_json(cls, json_path):
|
def from_json(cls, json_path):
|
||||||
"""Initialize this class from an existing packages.json file.
|
"""Initialize this class from an existing apks.json file.
|
||||||
:param json_path: Path to the packages.json file to parse.
|
:param json_path: Path to the apks.json file to parse.
|
||||||
"""
|
"""
|
||||||
with open(json_path, "r") as handle:
|
with open(json_path, "r") as handle:
|
||||||
data = json.load(handle)
|
data = json.load(handle)
|
||||||
|
@ -202,7 +202,7 @@ class DownloadAPKs(AndroidExtraction):
|
||||||
def save_json(self):
|
def save_json(self):
|
||||||
"""Save the results to the package.json file.
|
"""Save the results to the package.json file.
|
||||||
"""
|
"""
|
||||||
json_path = os.path.join(self.output_folder, "packages.json")
|
json_path = os.path.join(self.output_folder, "apks.json")
|
||||||
packages = []
|
packages = []
|
||||||
for package in self.packages:
|
for package in self.packages:
|
||||||
packages.append(package.__dict__)
|
packages.append(package.__dict__)
|
||||||
|
|
Loading…
Reference in New Issue