From be8b4f9c74519aeacdcecb797722ce2682a68cb2 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sun, 6 Mar 2016 09:09:23 +0100 Subject: Avoid prefix to command mv to get results in local language --- MgaRepo/svn.py | 7 +++++-- MgaRepo/util.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'MgaRepo') diff --git a/MgaRepo/svn.py b/MgaRepo/svn.py index aa74727..1bad552 100644 --- a/MgaRepo/svn.py +++ b/MgaRepo/svn.py @@ -23,12 +23,15 @@ class SVNLogEntry: class SVN: def _execsvn(self, *args, **kwargs): - localcmds = ("add", "revert", "cleanup") + localcmds = ("add", "revert", "cleanup", "mv") if not kwargs.get("show") and args[0] not in localcmds: args = list(args) args.append("--non-interactive") else: - kwargs["geterr"] = True + if args[0] == "mv": + kwargs["geterr"] = False + else: + kwargs["geterr"] = True kwargs["cleanerr"] = True if kwargs.get("xml"): args.append("--xml") diff --git a/MgaRepo/util.py b/MgaRepo/util.py index 4d4a3d8..56b012f 100644 --- a/MgaRepo/util.py +++ b/MgaRepo/util.py @@ -65,7 +65,7 @@ def execcmd(*cmd, **kwargs): break output = err.getvalue() else: - status = os.system(prefix + cmdstr) + status = os.system(cmdstr) output = "" else: status, output = commands_getstatusoutput(prefix + cmdstr) -- cgit v1.2.1