dom0-updates: force 'C' locale for rpm --checksig call

Otherwise "OK", searched by regex, might be translated (which is the
case for es_ES locale).
This commit is contained in:
Marek Marczykowski-Górecki 2014-05-05 04:00:52 +02:00
parent 85dd4a84f6
commit c103f3713c

View File

@ -64,6 +64,7 @@ def handle_dom0updates(updatevm):
shutil.rmtree(updates_repodata_dir) shutil.rmtree(updates_repodata_dir)
if os.path.exists(updates_error_file): if os.path.exists(updates_error_file):
os.remove(updates_error_file) os.remove(updates_error_file)
os.environ['LC_ALL'] = 'C'
qubes_gid = grp.getgrnam('qubes').gr_gid qubes_gid = grp.getgrnam('qubes').gr_gid
os.mkdir(updates_rpm_dir) os.mkdir(updates_rpm_dir)
os.chown(updates_rpm_dir, -1, qubes_gid) os.chown(updates_rpm_dir, -1, qubes_gid)