1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-06-30 14:40:09 +02:00

locale/pick-complete-translations.py: run sort without shell

Static code analyzers flag such things as security errors.
This commit is contained in:
Hans-Christoph Steiner 2021-01-16 22:01:50 +01:00
parent a304ae95fa
commit b655d20d6b
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA

View File

@ -6,6 +6,7 @@ import json
import os
import re
import requests
import subprocess
import sys
@ -51,4 +52,4 @@ with open(manifest_file, 'a') as fp:
if line:
fp.write(line)
os.system('sort -u -o %s %s' % (manifest_file, manifest_file))
subprocess.run(['sort', '-u', '-o', manifest_file, manifest_file])