1From 3a285509665dbd0df77517f3e042dee0c2226c97 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net>
3Date: Sat, 13 Jul 2019 15:39:36 +0200
4Subject: [PATCH] Make public key an optional argument with a default value
5
6---
7 update_verifier.py | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10diff --git a/update_verifier.py b/update_verifier.py
11index 38f073f..24f0c6e 100644
12--- a/update_verifier.py
13+++ b/update_verifier.py
14@@ -109,8 +109,8 @@ class SignedFile(object):
15 def main():
16 parser = argparse.ArgumentParser(description='Verifies whole file signed '
17 'Android update files')
18- parser.add_argument('public_key')
19 parser.add_argument('zipfile')
20+ parser.add_argument('public_key', nargs='?', default='/usr/share/lineage-verifier/pubkey')
21 args = parser.parse_args()
22
23 signed_file = SignedFile(args.zipfile)