aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2018-04-07 15:15:00 +0200
committerPapoteur <papoteur@mageia.org>2018-04-23 14:53:51 +0200
commit977341d4a99ea2870deba861adbe2d0e3318174d (patch)
treee2a149da0379ee82d72de8541d103de348af962b /MgaRepo
parent2ce962b65821b04583cad02c700b1342f0e38273 (diff)
downloadmgarepo-977341d4a99ea2870deba861adbe2d0e3318174d.tar
mgarepo-977341d4a99ea2870deba861adbe2d0e3318174d.tar.gz
mgarepo-977341d4a99ea2870deba861adbe2d0e3318174d.tar.bz2
mgarepo-977341d4a99ea2870deba861adbe2d0e3318174d.tar.xz
mgarepo-977341d4a99ea2870deba861adbe2d0e3318174d.zip
Allow usage of path with special characters with sync command (mag#73)
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/svn.py4
-rw-r--r--MgaRepo/util.py2
2 files changed, 6 insertions, 0 deletions
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: