aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2015-12-01 07:59:16 +0100
committerPapoteur <papoteur@mageialinux-online.org>2015-12-01 07:59:16 +0100
commit2453721abe41885e8c428abd14890380ab9157ee (patch)
tree8e1906415b4331645ca5ecd83ca9e795d3131817 /MgaRepo
parent02497158514ea0f6a8ebd509ea3f09a2767fc2d1 (diff)
downloadmgarepo-2453721abe41885e8c428abd14890380ab9157ee.tar
mgarepo-2453721abe41885e8c428abd14890380ab9157ee.tar.gz
mgarepo-2453721abe41885e8c428abd14890380ab9157ee.tar.bz2
mgarepo-2453721abe41885e8c428abd14890380ab9157ee.tar.xz
mgarepo-2453721abe41885e8c428abd14890380ab9157ee.zip
Prefix command checkout to allow unicode character in directory name. mag#73
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/svn.py4
-rw-r--r--MgaRepo/util.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/MgaRepo/svn.py b/MgaRepo/svn.py
index 56b4da7..513c79a 100644
--- a/MgaRepo/svn.py
+++ b/MgaRepo/svn.py
@@ -40,6 +40,10 @@ class SVN:
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 ba3e0d6..70a8e85 100644
--- a/MgaRepo/util.py
+++ b/MgaRepo/util.py
@@ -29,7 +29,7 @@ def commands_getstatusoutput(cmd):
def execcmd(*cmd, **kwargs):
cmdstr = " ".join(cmd)
verbose = config.getbool("global", "verbose", 0)
- if kwargs.get('info'):
+ if kwargs.get('info') or kwargs.get('checkout'):
prefix='LANGUAGE=C LC_TIME=C '
else:
prefix='LANG=C LANGUAGE=C LC_ALL=C '