Bugzilla – Attachment 156256 Details for
Bug 29324
Some files still don't have the correct license statement
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29324: Adjust tests
Bug-29324-Adjust-tests.patch (text/plain), 1.57 KB, created by
Philip Orr
on 2023-09-27 09:09:14 UTC
(
hide
)
Description:
Bug 29324: Adjust tests
Filename:
MIME Type:
Creator:
Philip Orr
Created:
2023-09-27 09:09:14 UTC
Size:
1.57 KB
patch
obsolete
>From 0d86b1d6176992044695d4cb77d00c7e943d3aec Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 26 Oct 2021 16:09:43 +0200 >Subject: [PATCH] Bug 29324: Adjust tests > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > xt/find-license-problems.t | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/xt/find-license-problems.t b/xt/find-license-problems.t >index 50e607edea..49e4a7c770 100755 >--- a/xt/find-license-problems.t >+++ b/xt/find-license-problems.t >@@ -44,7 +44,7 @@ find({ wanted => \&wanted, no_chdir => 1 }, File::Spec->curdir()); > foreach my $name (@files) { > open( my $fh, '<', $name ) || die "cannot open file $name $!"; > my ( $hascopyright, $hasgpl, $hasv3, $hasorlater, $haslinktolicense, >- $hasfranklinst, $is_not_us ) = (0)x7; >+ $hasfranklinst, $is_not_us, $needs_copyright ) = (0)x8; > while ( my $line = <$fh> ) { > $hascopyright = 1 if ( $line =~ /^(#|--)?\s*Copyright.*\d\d/ ); > $hasgpl = 1 if ( $line =~ /GNU General Public License/ ); >@@ -55,9 +55,10 @@ foreach my $name (@files) { > $haslinktolicense = 1 if $line =~ m|http://www\.gnu\.org/licenses|; > $hasfranklinst = 1 if ( $line =~ /51 Franklin Street/ ); > $is_not_us = 1 if $line =~ m|This file is part of the Zebra server|; >+ $needs_copyright = 1 if $line =~ m|This file is part of Koha|; > } > close $fh; >- next unless $hascopyright; >+ next unless $hascopyright || $needs_copyright; > next if $is_not_us; > is( $hasgpl > && $hasv3 >-- >2.30.2
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
|
Splinter Review
Attachments on
bug 29324
:
126916
|
153309
|
153310
|
153555
|
153556
|
153680
|
153681
|
153861
|
153899
|
153924
|
154240
| 156256 |
156257
|
156258
|
156259
|
156260
|
156261
|
156262