Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > d0363b7ec503a9126db5d0a60bafb360 > files > 4

svn2cl-0.13-3.mga3.src.rpm

Index: svn2cl.sh
===================================================================
--- svn2cl.sh
+++ svn2cl.sh	2009-11-30 10:36:41.000000000 +0100
@@ -305,7 +305,7 @@
 # try to determin a prefix to strip from all paths
 if [ "$STRIPPREFIX" = "AUTOMATICALLY-DETERMINED" ]
 then
-  STRIPPREFIX=`LANG=C eval "$SVNINFOCMD" | $AWK '/^URL:/{url=$2} /^Repository Root:/{root=$3} END{if(root){print substr(url,length(root)+2)}else{n=split(url,u,"/");print u[n]}}'`
+  STRIPPREFIX=`LANGUAGE=C eval "$SVNINFOCMD" 2> /dev/null | $AWK '/^URL:/{url=$2} /^Repository Root:/{root=$3} END{if(root){print substr(url,length(root)+2)}else{n=split(url,u,"/");print u[n]}}'`
   STRIPPREFIX=`echo "$STRIPPREFIX" | sed 's/%20/ /g'`
 fi