Skip to content

Commit

Permalink
Ignore invalid patches
Browse files Browse the repository at this point in the history
  • Loading branch information
linusyang committed Feb 21, 2019
1 parent 40014ab commit 0ef0d7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/patchmethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def main():
if len(method_list) == 0:
return 0
method_set = set(method_list)
if not os.path.isfile(smali_path):
print("----> Ignore patch: \"%s\" not found" % os.path.basename(smali_path))
return 0

with open(smali_path, 'r') as f:
smali = f.read()
Expand Down

0 comments on commit 0ef0d7c

Please sign in to comment.