diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-08-03 23:04:11 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-08-04 01:36:48 +0000 |
commit | 26bd99076a8d28865bbbe0122178a5a9ff2d55d0 (patch) | |
tree | 86a26397470d8c24c529e9de9227d53599c12ea2 /bin | |
parent | f2da3173f8d91898638749039265b7ad3303df2a (diff) |
add a way to mark system symbols
Change-Id: I1a8aed186f0489a02e046f88c3f4342529499b29
Reviewed-on: https://gerrit.libreoffice.org/27855
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/upload_symbols.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/upload_symbols.py b/bin/upload_symbols.py index f708797d65c9..07f3e3e415f7 100755 --- a/bin/upload_symbols.py +++ b/bin/upload_symbols.py @@ -13,10 +13,10 @@ def detect_platform(): return platform.system() def main(): - if len(sys.argv) != 4: + if len(sys.argv) < 4: print(sys.argv) print("Invalid number of parameters") - print("Usage: upload-symbols.py symbols.zip config.ini \"long explanation\"") + print("Usage: upload-symbols.py symbols.zip config.ini \"long explanation\" [--system]") sys.exit(1) upload_url = "http://crashreport.libreoffice.org/upload/" @@ -32,6 +32,9 @@ def main(): files = {'symbols': open(sys.argv[1], 'rb')} data = {'version': sys.argv[3], 'platform': platform} + if len(sys.argv) > 4 and sys.argv[4] == "--system": + data['system'] = True + session = requests.session() session.get(login_url) csrftoken = session.cookies['csrftoken'] |