From: fuzzyray Date: Tue, 2 Dec 2008 15:50:30 +0000 (-0000) Subject: Apply regex fixes from idl0r X-Git-Tag: gentoolkit-0.2.4.3^2~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=329bd4075b669764fcf2c844a948246d188e1669;p=gentoolkit.git Apply regex fixes from idl0r svn path=/; revision=525 --- diff --git a/trunk/src/echangelog/echangelog b/trunk/src/echangelog/echangelog index 3b64d21..f874bae 100644 --- a/trunk/src/echangelog/echangelog +++ b/trunk/src/echangelog/echangelog @@ -27,12 +27,12 @@ my %vcs = ( cvs => { diff => "cvs -f diff -U0", status => "cvs -fn up", add => "cvs -f add", skip => 6, - regex => qr/^Index: ()(([^\/]*?)\.ebuild)\s*$/ }, + regex => qr/^Index: (([^\/]*?)\.ebuild)\s*$/ }, svn => { diff => "svn diff -N", status => "svn status", add => "svn add", skip => 6, - regex => qr/^Index: ()(([^\/]*?)\.ebuild)\s*$/ }, + regex => qr/^Index: (([^\/]*?)\.ebuild)\s*$/ }, git => { diff => "git diff", status => "git diff-index HEAD --name-status", add => "git add", @@ -115,7 +115,7 @@ while () { } $actions{$1} = '+'; next; - } elsif (/^([ARMD])\s+(\S+)/) { + } elsif (/^([ARMD])\s+\+?\s*(\S+)/) { my ($status, $filename) = ($1,$2); if($vcs eq "git") { open P, "git rev-parse --sq --show-prefix |";