[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.5.2-43-g489be16



The following commit has been merged in the master branch:
commit 489be16483fee7faa7956873ad7f80a07575e8f4
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Aug 20 11:16:09 2011 +0200

    Replace "next" with a "unless" branch
    
    This avoids skipping the rest of the "files" check if it is an
    elf (or static library) named (something like) "license" or
    "copyring".

diff --git a/checks/files b/checks/files
index 6c1a58a..5315e56 100644
--- a/checks/files
+++ b/checks/files
@@ -831,8 +831,8 @@ foreach my $file (@{$info->sorted_index}) {
 	# okay, we cannot rule it out based on file name; but if it is an elf or a static
 	# library, we also skip it.  (In case you hadn't guessed; liblicense)
 	my $fileinfo = $info->file_info->{$file};
-	next if $fileinfo && ($fileinfo =~ m/^[^,]*\bELF\b/) or ($fileinfo =~ m/\bcurrent ar archive\b/);
-	tag 'extra-license-file', $file;
+	tag 'extra-license-file', $file
+	    unless $fileinfo && ($fileinfo =~ m/^[^,]*\bELF\b/) or ($fileinfo =~ m/\bcurrent ar archive\b/);
     }
 
     # ---------------- .devhelp2? files

-- 
Debian package checker


Reply to: