summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/debian/po-debconf/invalid-potfiles-in
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/debian/po-debconf/invalid-potfiles-in')
-rwxr-xr-xt/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/config8
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/POTFILES.in2
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/templates.pot37
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/zh_CN.po64
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/postinst8
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/templates22
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/desc2
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/hints1
10 files changed, 163 insertions, 0 deletions
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]