diff options
Diffstat (limited to 't/recipes/checks/debian/po-debconf')
79 files changed, 1784 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/control.in b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/control.in new file mode 100644 index 0000000..1140f19 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: [% $source %] +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends}, cdebconf +Description: [% $description %] + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in new file mode 100644 index 0000000..cef83a3 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/en.po b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/en.po new file mode 100644 index 0000000..0734922 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/en.po @@ -0,0 +1,241 @@ +# English translations for PACKAGE package. +# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Niels Thykier <niels@thykier.net>, 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-01 22:34+0000\n" +"PO-Revision-Date: 2012-10-01 22:54+0200\n" +"Last-Translator: Niels Thykier <niels@thykier.net>\n" +"Language-Team: English\n" +"Language: en_US\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "Useless note" + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "left, right, up, down" +msgstr "left, right, up, down" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Pick the odd one out" +msgstr "Pick the odd one out" + +#. Type: text +#. Description +#: ../templates:3001 +msgid "Missing template field." +msgstr "Missing template field." + +#. Type: boolean +#. Description +#: ../templates:4001 +msgid "Is this a bad template?" +msgstr "Is this a bad template?" + +#. Type: boolean +#. Description +#: ../templates:5001 +msgid "Missing type" +msgstr "Missing type" + +#. Type: lintian +#. Description +#: ../templates:6001 +msgid "Template with unknown type" +msgstr "Template with unknown type" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "How do you like the default?" +msgstr "How do you like the default?" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "On a scale of \"false\" to \"true\"." +msgstr "On a scale of \"false\" to \"true\"." + +#. Type: select +#. Description +#: ../templates:8001 +msgid "A boolean type would have been better" +msgstr "A boolean type would have been better" + +#. Type: select +#. Description +#: ../templates:9001 +msgid "Preference" +msgstr "Preference" + +#. Type: select +#. Description +#: ../templates:10001 +msgid "Missing a Choices field" +msgstr "Missing a Choices field" + +#. Type: error +#. Description +#. Type: error +#. Description +#: ../templates:12001 +msgid "Duplicate long description" +msgstr "Duplicate long description" + +#. Type: boolean +#. Description +#: ../templates:13001 +msgid "Is the field below unknown?" +msgstr "Is the field below unknown?" + +#. Type: string +#. Description +#: ../templates:14001 +msgid "What is the name of this package checker:" +msgstr "What is the name of this package checker:" + +#. Type: select +#. Description +#: ../templates:15001 +msgid "Select either x or y" +msgstr "Select either x or y" + +#. Type: boolean +#. Description +#: ../templates:16001 +msgid "Lintian is the best!" +msgstr "Lintian is the best!" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Do you like sakana?" +msgstr "Do you like sakana?" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Or do you prefer sake?" +msgstr "Or do you prefer sake?" + +#. Type: note +#. Description +#: ../templates:18001 +msgid "Aren't you tired of all these debconf prompts?" +msgstr "Aren't you tired of all these debconf prompts?" + +#. Type: boolean +#. Description +#: ../templates:19001 +msgid "" +"This template has a very long short description, is that what you call an " +"oxymoron?" +msgstr "" +"This template has a very long short description, is that what you call an " +"oxymoron?" + +#. Type: select +#. Description +#: ../templates:20001 +msgid "I think Lintian is the best" +msgstr "I think Lintian is the best" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Do you like Lintian?" +msgstr "Do you like Lintian?" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Pick \"yes\" if you do." +msgstr "Pick \"yes\" if you do." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "Name the title of this song:" +msgstr "Name the title of this song:" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Five green bottles sitting on the wall, Five green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be four " +"green bottles sitting on the wall." +msgstr "" +"Five green bottles sitting on the wall, Five green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be four " +"green bottles sitting on the wall." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Four green bottles sitting on the wall, Four green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be three " +"green bottles sitting on the wall." +msgstr "" +"Four green bottles sitting on the wall, Four green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be three " +"green bottles sitting on the wall." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Three green bottles sitting on the wall, Three green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be two " +"green bottles sitting on the wall." +msgstr "" +"Three green bottles sitting on the wall, Three green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be two " +"green bottles sitting on the wall." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Two green bottles sitting on the wall, Two green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be one " +"green bottle sitting on the wall." +msgstr "" +"Two green bottles sitting on the wall, Two green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be one " +"green bottle sitting on the wall." + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"One green bottle sitting on the wall, One green bottle sitting on the wall, " +"And if one green bottle should accidentally fall, There'll be no green " +"bottles sitting on the wall." +msgstr "" +"One green bottle sitting on the wall, One green bottle sitting on the wall, " +"And if one green bottle should accidentally fall, There'll be no green " +"bottles sitting on the wall." + +#. Type: entropy +#. Description +#: ../templates:23001 +#| msgid "Template with unknown type" +msgid "Template with entropy type" +msgstr "Template with unknown type" diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/en_US.po b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/en_US.po new file mode 100644 index 0000000..450a03c --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/en_US.po @@ -0,0 +1,223 @@ +# English translations for PACKAGE package. +# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Niels Thykier <niels@thykier.net>, 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-01 22:34+0000\n" +"PO-Revision-Date: 2012-10-01 22:54+0200\n" +"Last-Translator: Russ Allbery <rra@debian.org>\n" +"Language-Team: English <debian-i18n@lists.debian.org>\n" +"Language: en_US\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "" + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "left, right, up, down" +msgstr "" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Pick the odd one out" +msgstr "" + +#. Type: text +#. Description +#: ../templates:3001 +msgid "Missing template field." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:4001 +msgid "Is this a bad template?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:5001 +msgid "Missing type" +msgstr "" + +#. Type: lintian +#. Description +#: ../templates:6001 +msgid "Template with unknown type" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "How do you like the default?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "On a scale of \"false\" to \"true\"." +msgstr "" + +#. Type: select +#. Description +#: ../templates:8001 +msgid "A boolean type would have been better" +msgstr "" + +#. Type: select +#. Description +#: ../templates:9001 +msgid "Preference" +msgstr "" + +#. Type: select +#. Description +#: ../templates:10001 +msgid "Missing a Choices field" +msgstr "" + +#. Type: error +#. Description +#. Type: error +#. Description +#: ../templates:12001 +msgid "Duplicate long description" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:13001 +msgid "Is the field below unknown?" +msgstr "" + +#. Type: string +#. Description +#: ../templates:14001 +msgid "What is the name of this package checker:" +msgstr "" + +#. Type: select +#. Description +#: ../templates:15001 +msgid "Select either x or y" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:16001 +msgid "Lintian is the best!" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Do you like sakana?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Or do you prefer sake?" +msgstr "" + +#. Type: note +#. Description +#: ../templates:18001 +msgid "Aren't you tired of all these debconf prompts?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:19001 +msgid "" +"This template has a very long short description, is that what you call an " +"oxymoron?" +msgstr "" + +#. Type: select +#. Description +#: ../templates:20001 +msgid "I think Lintian is the best" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Do you like Lintian?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Pick \"yes\" if you do." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "Name the title of this song:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Five green bottles sitting on the wall, Five green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be four " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Four green bottles sitting on the wall, Four green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be three " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Three green bottles sitting on the wall, Three green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be two " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Two green bottles sitting on the wall, Two green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be one " +"green bottle sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"One green bottle sitting on the wall, One green bottle sitting on the wall, " +"And if one green bottle should accidentally fall, There'll be no green " +"bottles sitting on the wall." +msgstr "" + +#. Type: entropy +#. Description +#: ../templates:23001 +msgid "Template with entropy type" +msgstr "" diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/templates.pot new file mode 100644 index 0000000..b7f5a7b --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/templates.pot @@ -0,0 +1,223 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-01 22:34+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: error +#. Description +#: ../templates:1001 +msgid "Useless note" +msgstr "" + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "left, right, up, down" +msgstr "" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Pick the odd one out" +msgstr "" + +#. Type: text +#. Description +#: ../templates:3001 +msgid "Missing template field." +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:4001 +msgid "Is this a bad template?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:5001 +msgid "Missing type" +msgstr "" + +#. Type: lintian +#. Description +#: ../templates:6001 +msgid "Template with unknown type" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "How do you like the default?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:7001 +msgid "On a scale of \"false\" to \"true\"." +msgstr "" + +#. Type: select +#. Description +#: ../templates:8001 +msgid "A boolean type would have been better" +msgstr "" + +#. Type: select +#. Description +#: ../templates:9001 +msgid "Preference" +msgstr "" + +#. Type: select +#. Description +#: ../templates:10001 +msgid "Missing a Choices field" +msgstr "" + +#. Type: error +#. Description +#. Type: error +#. Description +#: ../templates:12001 +msgid "Duplicate long description" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:13001 +msgid "Is the field below unknown?" +msgstr "" + +#. Type: string +#. Description +#: ../templates:14001 +msgid "What is the name of this package checker:" +msgstr "" + +#. Type: select +#. Description +#: ../templates:15001 +msgid "Select either x or y" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:16001 +msgid "Lintian is the best!" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Do you like sakana?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:17001 +msgid "Or do you prefer sake?" +msgstr "" + +#. Type: note +#. Description +#: ../templates:18001 +msgid "Aren't you tired of all these debconf prompts?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:19001 +msgid "" +"This template has a very long short description, is that what you call an " +"oxymoron?" +msgstr "" + +#. Type: select +#. Description +#: ../templates:20001 +msgid "I think Lintian is the best" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Do you like Lintian?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:21001 +msgid "Pick \"yes\" if you do." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "Name the title of this song:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Five green bottles sitting on the wall, Five green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be four " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Four green bottles sitting on the wall, Four green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be three " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Three green bottles sitting on the wall, Three green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be two " +"green bottles sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"Two green bottles sitting on the wall, Two green bottles sitting on the " +"wall, And if one green bottle should accidentally fall, There'll be one " +"green bottle sitting on the wall." +msgstr "" + +#. Type: string +#. Description +#: ../templates:22001 +msgid "" +"One green bottle sitting on the wall, One green bottle sitting on the wall, " +"And if one green bottle should accidentally fall, There'll be no green " +"bottles sitting on the wall." +msgstr "" + +#. Type: entropy +#. Description +#: ../templates:23001 +msgid "Template with entropy type" +msgstr "" diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/postinst b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/postinst new file mode 100644 index 0000000..4d6cb4d --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +. /usr/share/debconf/confmodule + diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/templates b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/templates new file mode 100644 index 0000000..46ca184 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/templates @@ -0,0 +1,124 @@ +Template: debconf/translated +Type: error +_Description: Useless note + +Template: debconf/unsplit-choices +Type: select +_Choices: left, right, up, down +_Description: Pick the odd one out + +Type: text +_Description: Missing template field. + +Template: debconf-malformed-template +Type: boolean +_Description: Is this a bad template? + +Template: debconf/no-type +_Description: Missing type + +Template: debconf/unknown-type +Type: lintian +_Description: Template with unknown type + +Template: debconf/boolean-bogus-default +Type: boolean +Default: lintian +_Description: How do you like the default? + On a scale of "false" to "true". + +Template: debconf/select-boolean-choice +Type: select +Choices: yes, no +_Description: A boolean type would have been better + +Template: debconf/select-empty-trans-choices +Type: select +Choices: sakana, sake +Choices-Da: +_Description: Preference + +Template: debconf/select-without-choices +Type: select +_Description: Missing a Choices field + +Template: debconf/no-description +Type: error + +Template: debconf/duplicate-long-desc +Type: error +_Description: Duplicate long description + Duplicate long description + +Template: debconf/unknown-field +Type: boolean +_Description: Is the field below unknown? +Unknown-field: yes, it is. + +Template: debconf/malformed-prompt +Type: string +_Description: What is the name of this package checker: + +Template: debconf/imperative-select +Type: select +Choices: x,y +_Description: Select either x or y + +Template: debconf/malformed-question +Type: boolean +_Description: Lintian is the best! + +Template: debconf/question-in-extended +Type: boolean +_Description: Do you like sakana? + Or do you prefer sake? + +Template: debconf/malformed-note-title +Type: note +_Description: Aren't you tired of all these debconf prompts? + +Template: debconf/too-long-short-desc +Type: boolean +_Description: This template has a very long short description, is that what you call an oxymoron? + +Template: debconf/first-person +Type: select +Choices: lintian, no-lintian +_Description: I think Lintian is the best + +Template: debconf/assumption +Type: boolean +_Description: Do you like Lintian? + Pick "yes" if you do. + +Template: debconf/5-green-bottles-on-the-wall +Type: string +_Description: Name the title of this song: + Five green bottles sitting on the wall, + Five green bottles sitting on the wall, + And if one green bottle should accidentally fall, + There'll be four green bottles sitting on the wall. + . + Four green bottles sitting on the wall, + Four green bottles sitting on the wall, + And if one green bottle should accidentally fall, + There'll be three green bottles sitting on the wall. + . + Three green bottles sitting on the wall, + Three green bottles sitting on the wall, + And if one green bottle should accidentally fall, + There'll be two green bottles sitting on the wall. + . + Two green bottles sitting on the wall, + Two green bottles sitting on the wall, + And if one green bottle should accidentally fall, + There'll be one green bottle sitting on the wall. + . + One green bottle sitting on the wall, + One green bottle sitting on the wall, + And if one green bottle should accidentally fall, + There'll be no green bottles sitting on the wall. + +Template: debconf/entropy-type +Type: entropy +_Description: Template with entropy type diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/fill-values b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/fill-values new file mode 100644 index 0000000..2018d2c --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: debconf-templates-general +Description: Test for various debconf template issues diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/orig/config-gen.pl b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/orig/config-gen.pl new file mode 100644 index 0000000..e6588b7 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/orig/config-gen.pl @@ -0,0 +1,31 @@ +#!/usr/bin/perl + +# Helper script to generate d/config from d/templates. +# It is just here to make sure all templates are "used". + +use strict; +use warnings; + +print <<EOF ; +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +EOF + +for my $line ( <STDIN> ) { + + if ($line =~ /^Template:\s*(\S+)\s*$/) { + + my $template = $1; + next + unless defined $template; + + print "db_input high $template || true\n"; + print "db_go\n\n"; + } +} + +exit 0; diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/orig/gen-source.mk b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/orig/gen-source.mk new file mode 100755 index 0000000..f6f5975 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/orig/gen-source.mk @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +all: debian/config + +debian/config: debian/templates + perl config-gen.pl < $< > $@ + + diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/pre-build b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/pre-build new file mode 100755 index 0000000..bfcb477 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/pre-build @@ -0,0 +1,4 @@ +#!/bin/sh + +DIR="$1" +make --silent -C "$DIR" -f "$DIR/gen-source.mk" all diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/eval/desc b/t/recipes/checks/debian/po-debconf/debconf-templates-general/eval/desc new file mode 100644 index 0000000..ab9ee47 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/eval/desc @@ -0,0 +1,2 @@ +Testname: debconf-templates-general +Check: debian/po-debconf diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/eval/hints b/t/recipes/checks/debian/po-debconf/debconf-templates-general/eval/hints new file mode 100644 index 0000000..e225a5a --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/eval/hints @@ -0,0 +1 @@ +debconf-templates-general (source): debconf-translation-using-general-list [debian/po/en_US.po] diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/config b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/config new file mode 100755 index 0000000..224c204 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/config @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_get test/checksum_error || true + diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/control.in b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/control.in new file mode 100644 index 0000000..1140f19 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: [% $source %] +Architecture: [% $package_architecture %] +Depends: ${shlibs:Depends}, ${misc:Depends}, cdebconf +Description: [% $description %] + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/POTFILES.in new file mode 100644 index 0000000..1c61d48 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +# taken from preseed 1.90; see #883653; FL +[type: gettext/rfc822deb] templates diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/templates.pot new file mode 100644 index 0000000..3abfcf6 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/templates.pot @@ -0,0 +1,37 @@ +# taken from preseed 1.90; see #883653; FL + +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: preseed\n" +"Report-Msgid-Bugs-To: preseed@packages.debian.org\n" +"POT-Creation-Date: 2016-11-22 22:34+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: error +#. Description +#. XXX: should be made translatable after Stretch +#: ../templates:1001 +msgid "Checksum error" +msgstr "" + +#. Type: error +#. Description +#. XXX: should be made translatable after Stretch +#: ../templates:1001 +msgid "" +"The ${ALGORITHM} checksum of the file retrieved from <${LOCATION}> fails to " +"match the expected value of \"${CHECKSUM}\". The file may be corrupt, or " +"the provided checksums may be out of date." +msgstr "" diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/zh_CN.po b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/zh_CN.po new file mode 100644 index 0000000..5be7a86 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/zh_CN.po @@ -0,0 +1,64 @@ +# taken from preseed 1.90; see #883653; FL + +# THIS FILE IS GENERATED AUTOMATICALLY FROM THE D-I PO MASTER FILES +# The master files can be found under packages/po/ +# +# DO NOT MODIFY THIS FILE DIRECTLY: SUCH CHANGES WILL BE LOST +# +# Simplified Chinese translation for Debian Installer. +# +# Copyright (C) 2003-2008 Software in the Public Interest, Inc. +# This file is distributed under the same license as debian-installer. +# +# Translated by Yijun Yuan (2004), Carlos Z.F. Liu (2004,2005,2006), +# Ming Hua (2005,2006,2007,2008), Xiyue Deng (2008), Kov Chai (2008), +# Kenlen Lai (2008), WCM (2008), Ren Xiaolei (2008). +# +# +# Translations from iso-codes: +# Tobias Toedter <t.toedter@gmx.net>, 2007. +# Translations taken from ICU SVN on 2007-09-09 +# +# Free Software Foundation, Inc., 2002, 2003, 2007, 2008. +# Alastair McKinstry <mckinstry@computer.org>, 2001,2002. +# Translations taken from KDE: +# - Wang Jian <lark@linux.net.cn>, 2000. +# - Carlos Z.F. Liu <carlosliu@users.sourceforge.net>, 2004 - 2006. +# LI Daobing <lidaobing@gmail.com>, 2007, 2008, 2009, 2010. +# YunQiang Su <wzssyqa@gmail.com>, 2011. +# +# Mai Hao Hui <mhh@126.com>, 2001 (translations from galeon) +# YunQiang Su <wzssyqa@gmail.com>, 2010, 2011, 2012, 2013. +# Yangfl <mmyangfl@gmail.com>, 2017. +# +msgstr "" +"Project-Id-Version: debian-installer\n" +"Report-Msgid-Bugs-To: preseed@packages.debian.org\n" +"POT-Creation-Date: 2016-11-22 22:34+0000\n" +"PO-Revision-Date: 2017-06-11 18:20+0800\n" +"Last-Translator: Yangfl <mmyangfl@gmail.com>\n" +"Language-Team: <debian-l10n-chinese@lists.debian.org>\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. Type: error +#. Description +#. XXX: should be made translatable after Stretch +#: ../templates:1001 +msgid "Checksum error" +msgstr "校验码错误" + +#. Type: error +#. Description +#. XXX: should be made translatable after Stretch +#: ../templates:1001 +msgid "" +"The ${ALGORITHM} checksum of the file retrieved from <${LOCATION}> fails to " +"match the expected value of \"${CHECKSUM}\". The file may be corrupt, or " +"the provided checksums may be out of date." +msgstr "" +"从 <${LOCATION}> 下载的文件 ${ALGORITHM} 校验码不符合预期,预期的值" +"为“${CHECKSUM}”。文件可能已经损毁,或所提供的校验码可能已经过期。" diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/postinst b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/postinst new file mode 100644 index 0000000..4d6cb4d --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +. /usr/share/debconf/confmodule + diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/templates b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/templates new file mode 100644 index 0000000..144f922 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/templates @@ -0,0 +1,22 @@ +Template: test/checksum_error +Type: error +# Lintian test note: The space between '# and CHECKSUM' in the lines +# below is the unicode character NO BREAK SPACE U+00A0 (\302\240 in +# UTF-8) and the sole reason why intltool-update fails. +# +# ERROR: xgettext failed to generate PO template file because there is non-ASCII +# string marked for translation. Please make sure that all strings marked +# for translation are in uniform encoding (say UTF-8), then *prepend* the +# following line to POTFILES.in and rerun intltool-update: +# +# [encoding: UTF-8] +# +# taken from preseed 1.90; see #883653; FL +# +# Translators : DO NOT TRANSLATE variable names : ALGORITHM, LOCATION +# and CHECKSUM +# :sl2: +_Description: Checksum error + The ${ALGORITHM} checksum of the file retrieved from <${LOCATION}> fails + to match the expected value of "${CHECKSUM}". The file may be corrupt, + or the provided checksums may be out of date. diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/fill-values b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/fill-values new file mode 100644 index 0000000..7862c3f --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: invalid-potfiles-in +Skeleton: upload-native +Description: Test for invalid POTFILES.in for debconf template diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/desc b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/desc new file mode 100644 index 0000000..4e65531 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/desc @@ -0,0 +1,2 @@ +Testname: invalid-potfiles-in +Check: debian/po-debconf diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/hints b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/hints new file mode 100644 index 0000000..40d9932 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/hints @@ -0,0 +1 @@ +invalid-potfiles-in (source): invalid-potfiles-in [debian/po/POTFILES.in] diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/changelog.in b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/changelog.in new file mode 100644 index 0000000..f5e308e --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/changelog.in @@ -0,0 +1,6 @@ +debconf ([% $version %]) [% $distribution %]; urgency=low + + * Initial Release + * Changelog line with exactly 80 characters which tests the line-too-long tag. + + -- Lintian Maintainers <debian-lint-maint@debian.org> Wed, 3 May 2006 18:07:19 -0500 diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/compat.in b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/control b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/control new file mode 100644 index 0000000..bf9f4e9 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/control @@ -0,0 +1,52 @@ +Source: debconf +Section: utils +Priority: optional +Build-Depends: debhelper (>= 4), dpatch +Maintainer: Lintian Maintainers <debian-lint-maint@debian.org> +Standards-Version: 3.7.2 + +Package: debconf-test +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (dummy) + +Package: debconf-test-noscripts +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (noscripts) + Package missing postinst/postrm/config. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-preinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (preinst) + Package uses debconf only in preinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-test-postinst +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Test package for the debconf checks of lintian (postinst) + Package uses debconf only in postinst. + . + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + +Package: debconf-udeb +Section: debian-installer +XC-Package-Type: udeb +XB-Installer-Menu-Item: 100 +Architecture: any +Depends: ${shlibs:Depends} +Description: Test udeb package for the debconf checks of lintian (dummy) diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/copyright b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/copyright new file mode 100644 index 0000000..84843ee --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/copyright @@ -0,0 +1,10 @@ +Copyright (C) 2004 Frank Lichtenheld <djpig@debian.org> + +Test for really old FSF address: + +Free Software Foundation, Inc., 675 Mass Ave, Cambridge, +MA 02139, USA. + +Test for a dh-make boilerplate: +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates new file mode 100644 index 0000000..93f8071 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst new file mode 100644 index 0000000..56ab871 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm new file mode 100644 index 0000000..cbf5e3b --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates new file mode 100644 index 0000000..2a2a8ab --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm new file mode 100644 index 0000000..cbf5e3b --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi +#DEBHELPER# diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst new file mode 100644 index 0000000..bf6f074 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +# Obsolete name for the confmodule +. /usr/share/debconf/confmodule.sh + +. /usr/share/debconf/confmodule + +db_input medium debconf/test + +#DEBHELPER# + +true diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates new file mode 100644 index 0000000..2a2a8ab --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates @@ -0,0 +1,3 @@ +Template: debconf/test +Type: text +_description: Enter something: diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.config b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.config new file mode 100644 index 0000000..9e32d06 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.config @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_settitle "Funky lintian test" + +# Bad priorities. +db_text LOW debconf/test +db_input normal debconf/test + +# Valid priorities. +db_text \ +high debconf/test +foo=medium +db_input $foo debconf/test +db_input "$foo" debconf/test +db_input 'medium' debconf/test + +# debconf/transtring should not be flagged as unused +# (it's aliased to debconf/alias, which is used) +db_register debconf/transtring debconf/alias +db_input medium debconf/alias diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.postinst b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.postinst new file mode 100644 index 0000000..b387037 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.postinst @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +# Not supposed to do this here. +db_input medium debconf/test + +true diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates new file mode 100644 index 0000000..811bb6c --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates @@ -0,0 +1,101 @@ +Template: debconf/test +Type: text +_description: Foo bar (1) + +Template: debconf/testmulti +Type: multiselect +__Choices: foo, bar, boo +_Description: test comma usages in choices fields + +Template: debconf/testmulti-escape +Type: multiselect +_Choices: foo\, bar, boo +_Description: test escaped comma usages in choices fields: + +Template: debconf/testboolean +Type: boolean +_Description: Enter yes or no: + Do you want to answer this question? + +Template: debconf/teststring +Type: string +_Description: This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + This template goes on and on. + +Template: debconf/testnote +Type: note +Description: This should be a title and not a really long sentence that ends in a regular period. + +Template: debconf/1st-person +Type: select +__Choices: one, two +_Description: Select one of these: + I am a stupid test of first-person syntax that tells you to select yes + even though yes isn't an option in this prompt. + +Template: debconf/internal +Type: boolean +Description: For internal use only + We are testing that style checks are not applied to templates that are + marked as internal. + +Template: debconf/no-description +Type: string + +Template: debconf/translate +Type: boolean +_Default: false +_Description: Should this really be translated? + +Template: debconf/transtring +Type: string +_Default: 1 +_Description: Count of templates: + The number of useless numbers that a translator would have to translate + for this template. + +Template: debconf/language +__Choices: English, Spanish, German, French +# This is the default choice. Translators should put their own language, +# if available, here instead, but the value MUST be the English version +# of the value for the package scripts to work properly. +_Default: English[ translators, see the comment in the PO files] +_Description: The default language, an example of a default that should + be translated. + +Template: debconf/error +Type: error +_Description: An error occurred + This is a sample Debconf error template. + +Template: debconf/should-be-boolean +Type: select +__Choices: yes, no +_Description: Choose: + Pick yes or no. + +Template: debconf/should-be-no-longer-a-problem +Type: boolean +_Description: Decide, lintian + Using "no longer" should no longer be detected as + making-assumptions-about-interfaces-in-templates by lintian. diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de new file mode 100644 index 0000000..f9ea121 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de @@ -0,0 +1,3 @@ +Template: debconf/testmulti +Type: multiselect +Choices: foo, bar\, boo, boo diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst new file mode 100644 index 0000000..4ce41f0 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +ldconfig + +true diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates new file mode 100644 index 0000000..5d7cf5a --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates @@ -0,0 +1,3 @@ +Template: debian-installer/debconf-udeb/title +Type: text +_description: This is just a test diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/POTFILES.in new file mode 100644 index 0000000..d0c82f0 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] debconf-test.templates +[type: gettext/rfc822deb] debconf-udeb.templates diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/de.po b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/de.po new file mode 100644 index 0000000..86c5796 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/de.po @@ -0,0 +1,66 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2004-12-06 01:01+0100\n" +"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:11 +msgid "foo\\, bar, boo" +msgstr "foo, bar, boo" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "Dies ist nur ein Test" diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/fr.po b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/fr.po new file mode 100644 index 0000000..c74deb2 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/fr.po @@ -0,0 +1,60 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n" +"Language-Team: debian-l10n-german@l.d.o\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "foo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "bar, boo" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "boo" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr " diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/lang.po b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/lang.po new file mode 100644 index 0000000..7ac498a --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/lang.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/nds.po b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/nds.po new file mode 100644 index 0000000..7ac498a --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/nds.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/output b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/output new file mode 100644 index 0000000..c3df1a5 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/output @@ -0,0 +1 @@ +2 utf8 diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/pt_BR.po b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/pt_BR.po new file mode 100644 index 0000000..7ac498a --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/pt_BR.po @@ -0,0 +1,15 @@ +msgid "" +msgstr "" +"Project-Id-Version: debconf-test 1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: 2005-10-13 15:03+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/sample-file.po b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/sample-file.po new file mode 100644 index 0000000..8dcc0ff --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/sample-file.po @@ -0,0 +1 @@ +This is some file that isn't actually a valid .po file. diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/templates.pot new file mode 100644 index 0000000..914c77f --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/templates.pot @@ -0,0 +1,61 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-12-06 00:51+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: text +#. description +#: ../debconf-test.templates:3 +msgid "Foo bar (2)" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "foo" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "bar" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../debconf-test.templates:7 +msgid "boo" +msgstr "" + +#. Type: multiselect +#. Description +#: ../debconf-test.templates:8 +msgid "test comma usages in choices fields" +msgstr "" + +#. Type: text +#. description +#: ../debconf-udeb.templates:3 +msgid "This is just a test" +msgstr "" diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/pycompat b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/pycompat new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/pyversions b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/pyversions new file mode 100644 index 0000000..6f290b0 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/pyversions @@ -0,0 +1 @@ +>= 2.7 diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/rules b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/rules new file mode 100755 index 0000000..933901a --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +deb_dir = debian/debconf +udeb_dir = debian/debconf-udeb +build_dirs = $(deb_dir) $(udeb_dir) + +build-indep: +# There are no architecture-independent files to be built +# by this package. If there were any they would be made +# here. + +build-arch: + dh_testdir + touch build + +build: build-indep build-arch + +clean: + dh_testdir + dh_testroot + -rm -f build + + dh_clean + +binary-indep: build +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs -a + + dh_installchangelogs -a + dh_installdocs -a + dh_installdebconf -pdebconf-test + dh_installdebconf -pdebconf-test-noscripts --noscripts + dh_installdebconf -pdebconf-test-preinst --noscripts + dh_installdebconf -pdebconf-test-postinst --noscripts + dh_installdebconf -pdebconf-udeb + + + + + dh_compress -a + dh_fixperms -a + +# The shlibs stuff doesn't matter here so do it in a weird order to +# test warnings. + dh_installdeb -a + dh_shlibdeps -a + dh_makeshlibs -a + dh_gencontrol -a + dh_md5sums + dh_builddeb -a + dh_makeshlibs -a + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/fill-values b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/fill-values new file mode 100644 index 0000000..186615f --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/fill-values @@ -0,0 +1,6 @@ +Skeleton: upload-native +Testname: legacy-debconf +Source: debconf +Version: 1~rc1 +Description: Legacy test "debconf" +Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~) diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/desc b/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/desc new file mode 100644 index 0000000..93e1d45 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-debconf +Check: debian/po-debconf diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/hints b/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/hints new file mode 100644 index 0000000..636bc66 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/hints @@ -0,0 +1,12 @@ +debconf (source): untranslatable-debconf-templates [debian/debconf-test.templates:58] +debconf (source): untranslatable-debconf-templates [debian/debconf-test.templates:47] +debconf (source): unknown-encoding-in-po-file [debian/po/fr.po] +debconf (source): translated-default-field [debian/debconf-test.templates:72] +debconf (source): translated-default-field [debian/debconf-test.templates:67] +debconf (source): stray-translated-debconf-templates [debian/debconf-test.templates.de] +debconf (source): no-complete-debconf-translation +debconf (source): newer-debconf-templates [debian/po/templates.pot] +debconf (source): misnamed-po-file [debian/po/sample-file.po] +debconf (source): misnamed-po-file [debian/po/lang.po] +debconf (source): invalid-po-file [debian/po/sample-file.po] +debconf (source): invalid-po-file [debian/po/fr.po] diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/post-test b/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/English.po b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/English.po new file mode 100644 index 0000000..e99b822 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/English.po @@ -0,0 +1 @@ +Not a PO file or an English translation. diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/POTFILES.in new file mode 100644 index 0000000..da5857e --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/POTFILES.in @@ -0,0 +1,3 @@ +# This is a comment, which should be ignored. +[type: gettext/rfc822deb] templates +some-other-file diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/de.po b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/de.po new file mode 100644 index 0000000..545fd25 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/de.po @@ -0,0 +1,2 @@ +This is just some random other file that isn't a German translation at +all. diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/templates.pot new file mode 100644 index 0000000..420734f --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/templates.pot @@ -0,0 +1,30 @@ +msgid "" +msgstr "" +"Project-Id-Version: Lintian 2.4.3\n" +"PO-Revision-Date: +2010-07-25 17:07 -0700\n" +"Last-Translator: Russ Allbery <rra@debian.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Default +#: ../templates:1001 +msgid "foo" +msgstr "" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "This is a string question used for testing:" +msgstr "" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "This is a second string question:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "This one ensures no 100% translation of the template." diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/templates b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/templates new file mode 100644 index 0000000..b626825 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/templates @@ -0,0 +1,10 @@ +Template: po-debconf-general/test +Type: string +_Default: foo +Description: This is a string question used for testing: + +Template: po-debconf-general/test-2 +Type: string +Default: bar +_Description: This is a second string question: + This one ensures no 100% translation of the template. diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/templates.en_US b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/templates.en_US new file mode 100644 index 0000000..617a474 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/templates.en_US @@ -0,0 +1,5 @@ +Template: po-debconf-general/test +Type: string +Default: foo +_Description: This is an English translation that shouldn't be in this + directory. diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/fill-values b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/fill-values new file mode 100644 index 0000000..bbcbc61 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: po-debconf-general +Description: General tests for debconf translations diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/eval/desc b/t/recipes/checks/debian/po-debconf/po-debconf-general/eval/desc new file mode 100644 index 0000000..72652db --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/eval/desc @@ -0,0 +1,2 @@ +Testname: po-debconf-general +Check: debian/po-debconf diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/eval/hints b/t/recipes/checks/debian/po-debconf/po-debconf-general/eval/hints new file mode 100644 index 0000000..af584a3 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/eval/hints @@ -0,0 +1,8 @@ +po-debconf-general (source): untranslatable-debconf-templates [debian/templates:4] +po-debconf-general (source): translated-default-field [debian/templates:3] +po-debconf-general (source): stray-translated-debconf-templates [debian/templates.en_US] +po-debconf-general (source): no-complete-debconf-translation +po-debconf-general (source): missing-file-from-potfiles-in some-other-file [debian/po/POTFILES.in:3] +po-debconf-general (source): misnamed-po-file [debian/po/English.po] +po-debconf-general (source): invalid-po-file [debian/po/de.po] +po-debconf-general (source): invalid-po-file [debian/po/English.po] diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/config b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/config new file mode 100755 index 0000000..240b7f8 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/config @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_get po-debconf-general/test || true +db_get po-debconf-general/test-2 || true + diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/po/en.po b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/po/en.po new file mode 100644 index 0000000..dbf7e69 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/po/en.po @@ -0,0 +1,17 @@ +# Woohoo, translations - here to suppress a "no-complete-translation" +# +msgid "" +msgstr "" +"Project-Id-Version: po-debconf-missing\n" +"Report-Msgid-Bugs-To: po-debconf-missing@packages.debian.org\n" +"POT-Creation-Date: 2009-08-24 19:24+0200\n" +"PO-Revision-Date: 2010-09-03 23:51+0200\n" +"Last-Translator: Lintian Maintainers <debian-lint-maint@lists.debian.org>\n" +"Language-Team: Lintian Maintainers <debian-lint-maint@lists.debian.org>\n" +"Language: en\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + + diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/postinst b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/postinst new file mode 100644 index 0000000..0ae7a18 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/postinst @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +#DEBHELPER# diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/templates b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/templates new file mode 100644 index 0000000..1285e40 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/templates @@ -0,0 +1,10 @@ +Template: po-debconf-general/test +Type: string +Default: foo +_Description: This is a string question used for testing: + +Template: po-debconf-general/test-2 +Type: string +Default: bar +_Description: This is a second string question: + This one ensures no 100% translation of the template. diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/fill-values b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/fill-values new file mode 100644 index 0000000..0e4fc01 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: po-debconf-missing +Description: Test for missing po-debconf files diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-missing/eval/desc b/t/recipes/checks/debian/po-debconf/po-debconf-missing/eval/desc new file mode 100644 index 0000000..9a65aef --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-missing/eval/desc @@ -0,0 +1,2 @@ +Testname: po-debconf-missing +Check: debian/po-debconf diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-missing/eval/hints b/t/recipes/checks/debian/po-debconf/po-debconf-missing/eval/hints new file mode 100644 index 0000000..6830040 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-missing/eval/hints @@ -0,0 +1,2 @@ +po-debconf-missing (source): missing-templates-pot +po-debconf-missing (source): missing-potfiles-in diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/config b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/config new file mode 100755 index 0000000..240b7f8 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/config @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_get po-debconf-general/test || true +db_get po-debconf-general/test-2 || true + diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/postinst b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/postinst new file mode 100644 index 0000000..0ae7a18 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/postinst @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +#DEBHELPER# diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/templates b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/templates new file mode 100644 index 0000000..1d685bc --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/templates @@ -0,0 +1,10 @@ +Template: po-debconf-general/test +Type: string +Default: foo +Description: This is a string question used for testing: + +Template: po-debconf-general/test-2 +Type: string +Default: bar +Description: This is a second string question: + This one ensures no 100% translation of the template. diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/fill-values b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/fill-values new file mode 100644 index 0000000..1b56e55 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: po-debconf-no-po-debconf +Description: Test for not using po-debconf diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/desc b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/desc new file mode 100644 index 0000000..d3b4ab1 --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/desc @@ -0,0 +1,2 @@ +Testname: po-debconf-no-po-debconf +Check: debian/po-debconf diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/hints b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/hints new file mode 100644 index 0000000..2fd5c5b --- /dev/null +++ b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/hints @@ -0,0 +1,3 @@ +po-debconf-no-po-debconf (source): untranslatable-debconf-templates [debian/templates:9] +po-debconf-no-po-debconf (source): untranslatable-debconf-templates [debian/templates:4] +po-debconf-no-po-debconf (source): not-using-po-debconf |