[projects/pld-builder.new] Run changelog query under UTF-8 locale, so we get non-ascii names properly displaed.

arekm arekm at pld-linux.org
Sat Oct 18 13:01:12 CEST 2014


commit f7d20c00b6c0cf89bc80f7b169d69dae5aeaa0ea
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Oct 18 13:01:07 2014 +0200

    Run changelog query under UTF-8 locale, so we get non-ascii names properly displaed.

 PLD_Builder/rpm_builder.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/PLD_Builder/rpm_builder.py b/PLD_Builder/rpm_builder.py
index c816db4..4570334 100644
--- a/PLD_Builder/rpm_builder.py
+++ b/PLD_Builder/rpm_builder.py
@@ -185,7 +185,7 @@ def build_rpm(r, b):
     res = chroot.run("""
         set -ex;
         install -d %(topdir)s/{BUILD,RPMS};
-        rpm -qp --changelog %(src_rpm)s;
+        LC_ALL=en_US.UTF-8 rpm -qp --changelog %(src_rpm)s;
         rpm -Uhv --nodeps %(rpmdefs)s %(src_rpm)s;
         rm -f %(src_rpm)s;
     """ % {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/f7d20c00b6c0cf89bc80f7b169d69dae5aeaa0ea



More information about the pld-cvs-commit mailing list