[Reproducible-builds] [dh-python] 70/183: pybuild: set LC_ALL/http_proxy also when --system is used
Jérémy Bobbio
lunar at moszumanska.debian.org
Fri Sep 19 15:30:21 UTC 2014
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch pu/reproducible_builds
in repository dh-python.
commit a7e70efe2427f84944e2644a14c1a4732f0f5b5b
Author: Piotr Ożarowski <piotr at debian.org>
Date: Thu Aug 8 00:57:38 2013 +0200
pybuild: set LC_ALL/http_proxy also when --system is used
---
pybuild | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/pybuild b/pybuild
index 3836986..52ba2a8 100755
--- a/pybuild
+++ b/pybuild
@@ -46,6 +46,12 @@ def main(cfg):
if 'DEB_BUILD_OPTIONS' in environ:
nocheck = 'nocheck' in environ['DEB_BUILD_OPTIONS']
+ env = environ.copy()
+ if 'LC_ALL' not in env:
+ env['LC_ALL'] = 'C.UTF-8'
+ if 'http_proxy' not in env:
+ env['http_proxy'] = 'http://127.0.0.1:9/'
+
if cfg.system:
certainty = 99
Plugin = build.plugins.get(cfg.system)
@@ -53,7 +59,7 @@ def main(cfg):
log.error('unrecognized build system: %s', cfg.system)
exit(10)
plugin = Plugin(cfg)
- context = {'ENV': environ.copy(), 'args': {}, 'dir': cfg.dir}
+ context = {'ENV': env, 'args': {}, 'dir': cfg.dir}
else:
plugin, certainty, context = None, 0, None
for Plugin in build.plugins.values():
@@ -63,11 +69,6 @@ def main(cfg):
log.warn('cannot initialize %s plugin: %s', Plugin.NAME,
err, exc_info=cfg.verbose)
continue
- env = environ.copy()
- if 'LC_ALL' not in env:
- env['LC_ALL'] = 'C.UTF-8'
- if 'http_proxy' not in env:
- env['http_proxy'] = 'http://127.0.0.1:9/'
tmp_context = {'ENV': env, 'args': {}, 'dir': cfg.dir}
tmp_certainty = tmp_plugin.detect(tmp_context)
if tmp_certainty and tmp_certainty > certainty:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dh-python.git
More information about the Reproducible-builds
mailing list