From: Fabian Groffen Date: Mon, 26 Feb 2007 20:33:15 +0000 (-0000) Subject: Instead of grepping what should be the last line of SVN's output, simply X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=33a505583f03fae9338d69d78089359ed0d7399a;p=portage.git Instead of grepping what should be the last line of SVN's output, simply cut it off. This is a lazy hack for what already was quite lazy, but to fix it when the user doesn't use a C locale (the message will be translated into something else) svn path=/main/branches/prefix/; revision=6073 --- diff --git a/bin/repoman b/bin/repoman index e78be093e..8d67197a6 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1649,7 +1649,7 @@ elif "--pretend" not in myoptions: retval=getstatusoutput(portage.const.EPREFIX+"/usr/bin/cvs -n up 2>&1 | "+portage.const.EPREFIX+"/bin/egrep '^[^\?] .*' | "+portage.const.EPREFIX+"/bin/egrep -v '^. .*/digest-[^/]+|^cvs server: .* -- ignored$'") if isSvn: print "Performing a "+green("svn status -u")+" with a little magic grep to check for updates." - retval=getstatusoutput(portage.const.EPREFIX+"/usr/bin/svn status -u 2>&1 | "+portage.const.EPREFIX+"/bin/egrep -v '^. +.*/digest-[^/]+' | "+portage.const.EPREFIX+"/bin/egrep -v '^Status against revision:'") + retval=getstatusoutput(portage.const.EPREFIX+"/usr/bin/svn status -u 2>&1 | "+portage.const.EPREFIX+"/bin/egrep -v '^. +.*/digest-[^/]+' | "+portage.const.EPREFIX+"/usr/bin/head -n-1") mylines=retval[1].split("\n") myupdates=[]