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>
This commit is contained in:
Markus Mohrhard
2016-08-03 23:04:11 +02:00
parent f2da3173f8
commit 26bd99076a

View File

@@ -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']