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:
parent
a304ae95fa
commit
b655d20d6b
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue
Block a user