FreeBSD Bugzilla – Attachment 147496 Details for
Bug 193785
[patch]: devel/p5-PatchReader: fix new file detection in SVN patches
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Parser patch
patchreader.diff (text/plain), 1.97 KB, created by
Marcus von Appen
on 2014-09-20 07:27:43 UTC
(
hide
)
Description:
Parser patch
Filename:
MIME Type:
Creator:
Marcus von Appen
Created:
2014-09-20 07:27:43 UTC
Size:
1.97 KB
patch
obsolete
>Index: p5-PatchReader/Makefile >=================================================================== >--- p5-PatchReader/Makefile (revision 368538) >+++ p5-PatchReader/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= PatchReader > PORTVERSION= 0.9.6 >+PORTREVISION= 1 > CATEGORIES= devel perl5 > MASTER_SITES= CPAN > MASTER_SITE_SUBDIR= CPAN:TMANNERM >@@ -11,7 +12,7 @@ > MAINTAINER= toni.viemero@iki.fi > COMMENT= Perl module with utilities to read and manipulate patches and CVS > >-USES= perl5 >+USES= perl5 dos2unix > USE_PERL5= configure > > .include <bsd.port.mk> >Index: p5-PatchReader/files/patch-lib__PatchReader__Raw.pm >=================================================================== >--- p5-PatchReader/files/patch-lib__PatchReader__Raw.pm (revision 0) >+++ p5-PatchReader/files/patch-lib__PatchReader__Raw.pm (working copy) >@@ -0,0 +1,24 @@ >+--- lib/PatchReader/Raw.pm.orig 2014-09-20 06:54:09 UTC >++++ lib/PatchReader/Raw.pm >+@@ -41,7 +41,7 @@ >+ return if $line =~ /^\?/; >+ >+ # patch header parsing >+- if ($line =~ /^---\s*([\S ]+)\s*\t([^\t\r\n]*)\s*(\S*)/) { >++ if ($line =~ /^---\s+([\S ]+)\s*?(?:\t([^\t\r\n]*)\s*(\S*))?/) { >+ $this->_maybe_end_file(); >+ >+ if ($1 eq "/dev/null") { >+@@ -54,9 +54,12 @@ >+ >+ $this->{IN_HEADER} = 1; >+ >+- } elsif ($line =~ /^\+\+\+\s*([\S ]+)\s*\t([^\t\r\n]*)(\S*)/) { >++ } elsif ($line =~ /^\+\+\+\s+([\S ]+)\s*?(?:\t([^\t\r\n]*)(\S*))?/) { >+ if ($1 eq "/dev/null") { >+ $this->{FILE_STATE}{is_remove} = 1; >++ } else { >++ $this->{FILE_STATE}{filename} = $1; >+ } >+ $this->{FILE_STATE}{new_date_str} = $2; >+ $this->{FILE_STATE}{new_revision} = $3 if $3; > >Property changes on: p5-PatchReader/files/patch-lib__PatchReader__Raw.pm >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 193785
: 147496 |
147497