Mageia Bugzilla – Attachment 6920 Details for
Bug 73
mgarepo submit failed when a parent directory has an accentued name (UTF-8 issue)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Prefix svn info command
0001-Prefix-svn-info-command-with-only-LANGUAGE-C-73.patch (text/plain), 1.53 KB, created by
papoteur
on 2015-08-10 07:07:41 CEST
(
hide
)
Description:
Prefix svn info command
Filename:
MIME Type:
Creator:
papoteur
Created:
2015-08-10 07:07:41 CEST
Size:
1.53 KB
patch
obsolete
>From c7b283c9d2d17324b19a2cb9fa1a128bf092c911 Mon Sep 17 00:00:00 2001 >From: Papoteur <papoteur@mageialinux-online.org> >Date: Mon, 10 Aug 2015 06:59:45 +0200 >Subject: [PATCH] Prefix svn info command with only LANGUAGE=C #73 > >--- > MgaRepo/svn.py | 4 ++++ > MgaRepo/util.py | 7 +++++-- > 2 files changed, 9 insertions(+), 2 deletions(-) > >diff --git a/MgaRepo/svn.py b/MgaRepo/svn.py >index da3eee7..89de8f9 100644 >--- a/MgaRepo/svn.py >+++ b/MgaRepo/svn.py >@@ -33,6 +33,10 @@ class SVN: > svn_command = config.get("global", "svn-command", "svn") > cmdstr = svn_command + " " + " ".join(args) > try: >+ if args[0] == 'info': >+ kwargs['info'] = True >+ else: >+ kwargs['info'] = False > return execcmd(cmdstr, **kwargs) > except Error, e: > msg = None >diff --git a/MgaRepo/util.py b/MgaRepo/util.py >index 62ac32e..54348d6 100644 >--- a/MgaRepo/util.py >+++ b/MgaRepo/util.py >@@ -56,8 +56,11 @@ def execcmd(*cmd, **kwargs): > status = os.system(cmdstr) > output = "" > else: >- status, output = commands_getstatusoutput( >- "LANG=C LANGUAGE=C LC_ALL=C "+cmdstr) >+ if kwargs.get('info'): >+ prefix='LANGUAGE=C ' >+ else: >+ prefix='LANG=C LANGUAGE=C LC_ALL=C ' >+ status, output = commands_getstatusoutput(prefix + cmdstr) > verbose = config.getbool("global", "verbose", 0) > if status != 0 and not kwargs.get("noerror"): > if kwargs.get("cleanerr") and not verbose: >-- >2.3.8 >
From c7b283c9d2d17324b19a2cb9fa1a128bf092c911 Mon Sep 17 00:00:00 2001 From: Papoteur <papoteur@mageialinux-online.org> Date: Mon, 10 Aug 2015 06:59:45 +0200 Subject: [PATCH] Prefix svn info command with only LANGUAGE=C #73 --- MgaRepo/svn.py | 4 ++++ MgaRepo/util.py | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/MgaRepo/svn.py b/MgaRepo/svn.py index da3eee7..89de8f9 100644 --- a/MgaRepo/svn.py +++ b/MgaRepo/svn.py @@ -33,6 +33,10 @@ class SVN: svn_command = config.get("global", "svn-command", "svn") cmdstr = svn_command + " " + " ".join(args) try: + if args[0] == 'info': + kwargs['info'] = True + else: + kwargs['info'] = False return execcmd(cmdstr, **kwargs) except Error, e: msg = None diff --git a/MgaRepo/util.py b/MgaRepo/util.py index 62ac32e..54348d6 100644 --- a/MgaRepo/util.py +++ b/MgaRepo/util.py @@ -56,8 +56,11 @@ def execcmd(*cmd, **kwargs): status = os.system(cmdstr) output = "" else: - status, output = commands_getstatusoutput( - "LANG=C LANGUAGE=C LC_ALL=C "+cmdstr) + if kwargs.get('info'): + prefix='LANGUAGE=C ' + else: + prefix='LANG=C LANGUAGE=C LC_ALL=C ' + status, output = commands_getstatusoutput(prefix + cmdstr) verbose = config.getbool("global", "verbose", 0) if status != 0 and not kwargs.get("noerror"): if kwargs.get("cleanerr") and not verbose: -- 2.3.8
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 73
: 6920