diff options
-rw-r--r-- | MgaRepo/svn.py | 4 | ||||
-rw-r--r-- | MgaRepo/util.py | 2 |
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 ' |