aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2016-03-06 09:09:23 +0100
committerPapoteur <papoteur@mageialinux-online.org>2016-03-06 09:09:23 +0100
commitbe8b4f9c74519aeacdcecb797722ce2682a68cb2 (patch)
treefa39325164f791753866f37511b4efc415551bc7 /MgaRepo
parentb23feff85e0db6c6647f140cddd662bdec782dd8 (diff)
downloadmgarepo-be8b4f9c74519aeacdcecb797722ce2682a68cb2.tar
mgarepo-be8b4f9c74519aeacdcecb797722ce2682a68cb2.tar.gz
mgarepo-be8b4f9c74519aeacdcecb797722ce2682a68cb2.tar.bz2
mgarepo-be8b4f9c74519aeacdcecb797722ce2682a68cb2.tar.xz
mgarepo-be8b4f9c74519aeacdcecb797722ce2682a68cb2.zip
Avoid prefix to command mv to get results in local language
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/svn.py7
-rw-r--r--MgaRepo/util.py2
2 files changed, 6 insertions, 3 deletions
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)