aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2016-03-24 21:32:44 +0100
committerPapoteur <papoteur@mageialinux-online.org>2016-03-24 21:32:44 +0100
commitddf79169973aa14d7ba96deadcf39edd51475363 (patch)
tree46ac1be617fb7dc5fa0426638296f149703e24a0 /MgaRepo
parent0ecbf7e4df561854d29fb36bb06a40c78b25b3cf (diff)
downloadmgarepo-ddf79169973aa14d7ba96deadcf39edd51475363.tar
mgarepo-ddf79169973aa14d7ba96deadcf39edd51475363.tar.gz
mgarepo-ddf79169973aa14d7ba96deadcf39edd51475363.tar.bz2
mgarepo-ddf79169973aa14d7ba96deadcf39edd51475363.tar.xz
mgarepo-ddf79169973aa14d7ba96deadcf39edd51475363.zip
add svn log command in list of command not to prefix with LC_ALL=C (mga#73)
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/svn.py6
-rw-r--r--MgaRepo/util.py2
2 files changed, 2 insertions, 6 deletions
diff --git a/MgaRepo/svn.py b/MgaRepo/svn.py
index 1bad552..74f47a3 100644
--- a/MgaRepo/svn.py
+++ b/MgaRepo/svn.py
@@ -39,14 +39,10 @@ class SVN:
svn_command = config.get("global", "svn-command", "svn")
cmdstr = svn_command + " " + " ".join(args)
try:
- if args[0] == 'info':
+ if args[0] in ('info', 'checkout','log'):
kwargs['info'] = True
else:
kwargs['info'] = False
- if args[0] == 'checkout':
- kwargs['checkout'] = True
- else:
- kwargs['checkout'] = False
return execcmd(cmdstr, **kwargs)
except Error as e:
msg = None
diff --git a/MgaRepo/util.py b/MgaRepo/util.py
index 4d4a3d8..52ae50f 100644
--- a/MgaRepo/util.py
+++ b/MgaRepo/util.py
@@ -33,7 +33,7 @@ def commands_getstatusoutput(cmd):
def execcmd(*cmd, **kwargs):
cmdstr = " ".join(cmd)
verbose = config.getbool("global", "verbose", 0)
- if kwargs.get('info') or kwargs.get('checkout'):
+ if kwargs.get('info') :
prefix='LANGUAGE=C LC_TIME=C '
else:
prefix='LANG=C LANGUAGE=C LC_ALL=C '