This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository devscripts.

commit b7a91b7c8baa77749042b0dc6491cdfe4a2a1e08
Author: Dominique Dumont <[email protected]>
Date:   Sun Jan 18 20:29:28 2015 +0100

    licensecheck: print copyrights in a non-random order...
    
    ... a naive reverse sort is used to print more recent copyright first.
    If this sort is too naive, I'll implement something more subtle that
    will use copyright years to sort the copyright entries.
    
    Having a non-random order to print copyrights is required for the
    tests of the copyright scanner I'm writing.
---
 debian/changelog        | 1 +
 scripts/licensecheck.pl | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index e68e7c8..547281c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ devscripts (2.15.1+exp1) UNRELEASED; urgency=medium
   * licensecheck:
     + Handle license like GPL version 2 or 3 (which is not GPL-2+)
     + Ignore .pc directories
+    + print copyrights in a non random-order
 
   [ Daniel Kahn Gillmor ]
   * uscan: explicitly dearmor, rather than --import upstream signing key
diff --git a/scripts/licensecheck.pl b/scripts/licensecheck.pl
index 493c840..5b6d0d3 100755
--- a/scripts/licensecheck.pl
+++ b/scripts/licensecheck.pl
@@ -295,7 +295,7 @@ while (@files) {
     }
     close($F);
 
-    $copyright = join(" / ", values %copyrights);
+    $copyright = join(" / ", reverse sort values %copyrights);
 
     print qq(----- $file header -----\n$content----- end header -----\n\n)
        if $OPT{'verbose'};

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/collab-maint/devscripts.git

_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel

Reply via email to