=== modified file 'debian/rules'
@@ -6,4 +6,4 @@
override_dh_auto_test:
# XXX: The test-suite currently fails on Lucid. What can we do about
# it?
- NO_PKG_MANGLE=1 python -m testtools.run tests.test_suite
+ python -m testtools.run tests.test_suite
=== modified file 'hwpack/packages.py'
@@ -221,8 +221,12 @@
with open(os.path.join(
packaging_dir, 'DEBIAN', 'control'), 'w') as control_file:
control_file.write(control_file_text)
+ env = os.environ
+ env['LC_ALL'] = 'C'
+ env['NO_PKG_MANGLE'] = '1'
proc = subprocess.Popen(
['dpkg-deb', '-b', packaging_dir],
+ env=env,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(stdoutdata, stderrdata) = proc.communicate()
if proc.returncode: