mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-02 09:10:11 +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 os
|
||||||
import re
|
import re
|
||||||
import requests
|
import requests
|
||||||
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
@ -51,4 +52,4 @@ with open(manifest_file, 'a') as fp:
|
|||||||
if line:
|
if line:
|
||||||
fp.write(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