[libdebian-copyright-perl] 01/03: Add patch to add Files-Excluded as a valid field

gregor herrmann gregoa at debian.org
Wed Mar 2 16:50:19 UTC 2016


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

gregoa pushed a commit to branch master
in repository libdebian-copyright-perl.

commit a7a8b7f0449599a11ce3f7d8a3a2cdb5abb89dd5
Author: gregor herrmann <gregoa at debian.org>
Date:   Wed Mar 2 17:46:26 2016 +0100

    Add patch to add Files-Excluded as a valid field
    
    in Debian::Copyright::Stanza::Header.
    
    Closes: #781369
---
 debian/patches/files-excluded.patch | 53 +++++++++++++++++++++++++++++++++++++
 debian/patches/series               |  1 +
 2 files changed, 54 insertions(+)

diff --git a/debian/patches/files-excluded.patch b/debian/patches/files-excluded.patch
new file mode 100644
index 0000000..865570f
--- /dev/null
+++ b/debian/patches/files-excluded.patch
@@ -0,0 +1,53 @@
+Description: Add Files-Excluded field to header stanza
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/781369
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2016-03-02
+Forwarded: https://rt.cpan.org/Ticket/Display.html?id=112637
+Bug: https://rt.cpan.org/Ticket/Display.html?id=112637
+
+--- a/t/01.basic.t
++++ b/t/01.basic.t
+@@ -1,4 +1,4 @@
+-use Test::More tests => 37;
++use Test::More tests => 38;
+ 
+ use Debian::Copyright;
+ 
+@@ -12,6 +12,7 @@
+ isa_ok($copyright, 'Debian::Copyright');
+ $copyright->read('t/data/copyright');
+ like($copyright->header, qr{\AFormat:\s}xms, 'Header stanza');
++is($copyright->header->Files_Excluded, 'none', 'Files-Excluded header');
+ is($copyright->files->Length, 2, 'files length');
+ is($copyright->files->Keys(0), '*', 'key files(0)');
+ is($copyright->files->Values(0)->Files, '*', 'files(0)->Files');
+--- a/t/data/copyright
++++ b/t/data/copyright
+@@ -2,6 +2,7 @@
+ Upstream-Name: pkg-components
+ Upstream-Contact: Nicholas Bamber <nicholas at periapt.co.uk>
+ Source: http://github.com/periapt/pkg-components
++Files-Excluded: none
+ 
+ Files: *
+ Copyright: 
+--- a/lib/Debian/Copyright/Stanza/Header.pm
++++ b/lib/Debian/Copyright/Stanza/Header.pm
+@@ -43,6 +43,8 @@
+ 
+ =item Copyright
+ 
++=item Files_Excluded
++
+ =back
+ 
+ =cut
+@@ -62,6 +64,7 @@
+     Comment
+     License
+     Copyright
++    Files_Excluded
+ );
+ 
+ our $VERSION = '0.2';
diff --git a/debian/patches/series b/debian/patches/series
index d855597..92ac75c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 reproducible-copyright.patch
+files-excluded.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdebian-copyright-perl.git



More information about the Pkg-perl-cvs-commits mailing list