diff options
Diffstat (limited to 't/recipes/checks/debian/copyright/dep5/patch-empties-directory')
7 files changed, 55 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/copyright new file mode 100644 index 0000000..5dd52d9 --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/copyright @@ -0,0 +1,34 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Lintian +Upstream-Contact: <debian-lint-maint@lists.debian.org> +Source: http://lintian.debian.org +Comment: This is part of the testsuite of lintian. + See the file debian/copyright + in the lintian source directory for more details. + +Files: * +Copyright: + 2019 Felix Lechner <felix.lechner@lease-up.com> +License: GPL-2+ + +Files: will-be-empty/* +Copyright: + 2019 Felix Lechner <felix.lechner@lease-up.com> +License: GPL-2+ + +License: GPL-2+ + This program is free software; you may redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + . + This is distributed in the hope that it will be useful, but without + any warranty; without even the implied warranty of merchantability or + fitness for a particular purpose. See the GNU General Public License + for more details. + . + A copy of the GNU General Public License version 2 is available as + /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution + or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. + You can also obtain it by writing to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/patches/remove-file.patch b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/patches/remove-file.patch new file mode 100644 index 0000000..e572221 --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/patches/remove-file.patch @@ -0,0 +1,10 @@ +Description: Remove the sole file in a directory + Should not trigger wildcard-matches-nothing-in-dep5-copyright. + For more information, please see Bug#844274. +Author: Felix Lechner <felix.lechner@lease-up.com> +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/will-be-empty/removed-by-patch ++++ /dev/null +@@ -1 +0,0 @@ +-SOME CONTENT diff --git a/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/patches/series b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/patches/series new file mode 100644 index 0000000..56b4ebb --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/patches/series @@ -0,0 +1 @@ +remove-file.patch diff --git a/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/fill-values new file mode 100644 index 0000000..43ae87c --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-non-native +Testname: patch-empties-directory +Description: False positive for wildcard-matches-nothing-in-dep5-copyright diff --git a/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/orig/will-be-empty/removed-by-patch b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/orig/will-be-empty/removed-by-patch new file mode 100644 index 0000000..2517541 --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/orig/will-be-empty/removed-by-patch @@ -0,0 +1 @@ +SOME CONTENT diff --git a/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/eval/desc b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/eval/desc new file mode 100644 index 0000000..d1935af --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/eval/desc @@ -0,0 +1,5 @@ +Testname: patch-empties-directory +Check: debian/copyright/dep5 +Test-Against: + superfluous-file-pattern +See-Also: Bug#844274 diff --git a/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/eval/hints b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/eval/hints @@ -0,0 +1 @@ + |