FreeBSD Bugzilla – Attachment 211045 Details for
Bug 243600
ports-mgmt/portlint: add check for files being patched multiple times
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
portlint_multi_patch_rev0.diff (text/plain), 846 bytes, created by
Steve Wills
on 2020-01-26 05:21:42 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Steve Wills
Created:
2020-01-26 05:21:42 UTC
Size:
846 bytes
patch
obsolete
>diff --git ports-mgmt/portlint/src/portlint.pl ports-mgmt/portlint/src/portlint.pl >index 3081ac345bb5..bf0411dd6cd9 100644 >--- ports-mgmt/portlint/src/portlint.pl >+++ ports-mgmt/portlint/src/portlint.pl >@@ -307,6 +307,8 @@ foreach my $i (@checker) { > } > } > >+checkpatches(<$makevar{FILESDIR}/patch-*>); >+ > if ($committer) { > sub find_proc { > return if /^\.\.?$/; >@@ -1035,6 +1037,25 @@ sub checklastline { > close(IN); > } > >+sub checkpatches { >+ my (@patchfiles) = @_; >+ my @patched_files; >+ foreach my $file (@patchfiles) { >+ open(IN, "< $file") || return 0; >+ while (<IN>) { >+ if ($_ =~ /^\+\+\+\s(.*?)\s.*/) { >+ if($1 ~~ @patched_files) { >+ &perror("WARN", $file, -1, "$1 patched multiple times"); >+ } >+ else { >+ push(@patched_files, $1); >+ } >+ >+ } >+ } >+ } >+} >+ > sub checkpatch { > my($file) = @_; > my($whole);
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 243600
:
211045
|
211046