From 977341d4a99ea2870deba861adbe2d0e3318174d Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sat, 7 Apr 2018 15:15:00 +0200 Subject: Allow usage of path with special characters with sync command (mag#73) --- MgaRepo/svn.py | 4 ++++ MgaRepo/util.py | 2 ++ 2 files changed, 6 insertions(+) (limited to 'MgaRepo') diff --git a/MgaRepo/svn.py b/MgaRepo/svn.py index 74f47a3..4e883fe 100644 --- a/MgaRepo/svn.py +++ b/MgaRepo/svn.py @@ -43,6 +43,10 @@ class SVN: kwargs['info'] = True else: kwargs['info'] = False + if args[0] in ('status'): + kwargs['noprefix'] = True + else: + kwargs['noprefix'] = False return execcmd(cmdstr, **kwargs) except Error as e: msg = None diff --git a/MgaRepo/util.py b/MgaRepo/util.py index 538eae8..6d31399 100644 --- a/MgaRepo/util.py +++ b/MgaRepo/util.py @@ -35,6 +35,8 @@ def execcmd(*cmd, **kwargs): verbose = config.getbool("global", "verbose", 0) if kwargs.get('info') : prefix='LANGUAGE=C LC_TIME=C ' + elif kwargs.get('noprefix') : + prefix = '' else: prefix='LANG=C LANGUAGE=C LC_ALL=C ' if verbose: -- cgit v1.2.1