diff options
| author | Papoteur <papoteur@mageialinux-online.org> | 2016-05-29 14:44:38 +0200 |
|---|---|---|
| committer | Papoteur <papoteur@mageialinux-online.org> | 2016-05-29 14:44:38 +0200 |
| commit | 26f45c6548d4671b1792dbcf8411929f8ec145ae (patch) | |
| tree | 0b758f801cbb41a998b61ab6635794f0ac5035a9 /MgaRepo/util.py | |
| parent | 62adf7a95c70bf83890587f3d7d6f58e86ae12a3 (diff) | |
| parent | 3e3e90e699192df60eeafb2ec7a9e087aff97195 (diff) | |
| download | mgarepo-26f45c6548d4671b1792dbcf8411929f8ec145ae.tar mgarepo-26f45c6548d4671b1792dbcf8411929f8ec145ae.tar.gz mgarepo-26f45c6548d4671b1792dbcf8411929f8ec145ae.tar.bz2 mgarepo-26f45c6548d4671b1792dbcf8411929f8ec145ae.tar.xz mgarepo-26f45c6548d4671b1792dbcf8411929f8ec145ae.zip | |
Add commits before python3 divergence
Merge commit '3e3e90e699192df60eeafb2ec7a9e087aff97195' into topic/python2
Diffstat (limited to 'MgaRepo/util.py')
| -rw-r--r-- | MgaRepo/util.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/MgaRepo/util.py b/MgaRepo/util.py index 62ac32e..54348d6 100644 --- a/MgaRepo/util.py +++ b/MgaRepo/util.py @@ -56,8 +56,11 @@ def execcmd(*cmd, **kwargs): status = os.system(cmdstr) output = "" else: - status, output = commands_getstatusoutput( - "LANG=C LANGUAGE=C LC_ALL=C "+cmdstr) + if kwargs.get('info'): + prefix='LANGUAGE=C ' + else: + prefix='LANG=C LANGUAGE=C LC_ALL=C ' + status, output = commands_getstatusoutput(prefix + cmdstr) verbose = config.getbool("global", "verbose", 0) if status != 0 and not kwargs.get("noerror"): if kwargs.get("cleanerr") and not verbose: |
