Instead of grepping what should be the last line of SVN's output, simply
authorFabian Groffen <grobian@gentoo.org>
Mon, 26 Feb 2007 20:33:15 +0000 (20:33 -0000)
committerFabian Groffen <grobian@gentoo.org>
Mon, 26 Feb 2007 20:33:15 +0000 (20:33 -0000)
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

bin/repoman

index e78be093e9d448ca3824c09932b88eb0dba17d04..8d67197a60c01fd940aac7dae61a0ef23ad7c9dd 100755 (executable)
@@ -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=[]