summaryrefslogtreecommitdiff
path: root/support/pkgcheck/src/messages/errorsd.rs
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-05-27 03:01:31 +0000
committerNorbert Preining <norbert@preining.info>2022-05-27 03:01:31 +0000
commit84a5593d3fb9d03aac5677678bcc4c92e8c9a9c4 (patch)
tree0212ba38147bcfe80e5c1a853071a6e6a45b87d7 /support/pkgcheck/src/messages/errorsd.rs
parent02d941fa9c9895bb08a84ac9afe3559abd1ba8ad (diff)
CTAN sync 202205270301
Diffstat (limited to 'support/pkgcheck/src/messages/errorsd.rs')
-rw-r--r--support/pkgcheck/src/messages/errorsd.rs208
1 files changed, 125 insertions, 83 deletions
diff --git a/support/pkgcheck/src/messages/errorsd.rs b/support/pkgcheck/src/messages/errorsd.rs
index 0ea42eb23f..39a8ccb357 100644
--- a/support/pkgcheck/src/messages/errorsd.rs
+++ b/support/pkgcheck/src/messages/errorsd.rs
@@ -1,9 +1,12 @@
// This file is generated by a Perl script. The source is
// in the docs/ directory of the repository.
+use log::*;
+
pub fn e0001d() {
- println!(
- r#"E0001 -- Bad characters in file name
+ error!(
+ r#"
+E0001 -- Bad characters in file name
File name should not contain non-ascii characters. Additionally, file
names should not contain control characters or other characters which
@@ -16,8 +19,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#nounixspecialcharacte
}
pub fn e0002d() {
- println!(
- r#"E0002 -- File Permissions
+ error!(
+ r#"
+E0002 -- File Permissions
Files submitted to CTAN should be world readable.
@@ -31,8 +35,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#filepermissions
}
pub fn e0003d() {
- println!(
- r#"E0003 -- README is not a text file
+ error!(
+ r#"
+E0003 -- README is not a text file
The README file specified in the error message must be a text file but
it isn't.
@@ -41,8 +46,9 @@ it isn't.
}
pub fn e0004d() {
- println!(
- r#"E0004 -- Empty directory not allowed
+ error!(
+ r#"
+E0004 -- Empty directory not allowed
Empty directories are considered as rubbish, and are usually not
accepted as part of a package, neither in the package tree nor in the
@@ -55,8 +61,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#noemptyfiles
}
pub fn e0005d() {
- println!(
- r#"E0005 -- Empty files not allowed
+ error!(
+ r#"
+E0005 -- Empty files not allowed
Empty files are considered as rubbish, and are usually not accepted as
part of a package.
@@ -68,8 +75,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#noemptyfiles
}
pub fn e0006d() {
- println!(
- r#"E0006 -- Hidden directories not allowed
+ error!(
+ r#"
+E0006 -- Hidden directories not allowed
A package should not contain hidden directories, neither in the package
tree nor in the TDS zip archive.
@@ -81,8 +89,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#noauxfiles
}
pub fn e0007d() {
- println!(
- r#"E0007 -- Hidden files not allowed
+ error!(
+ r#"
+E0007 -- Hidden files not allowed
A package should not contain hidden files, neither in the package tree
nor in the TDS zip archive.
@@ -94,8 +103,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#noauxfiles
}
pub fn e0008d() {
- println!(
- r#"E0008 -- Temporary file detected
+ error!(
+ r#"
+E0008 -- Temporary file detected
A temporary file was detected. These are typically files created by TeX
& friends and should not be part of a package.
@@ -109,8 +119,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#noauxfiles
}
pub fn e0009d() {
- println!(
- r#"E0009 -- Package doesn't contain a README file
+ error!(
+ r#"
+E0009 -- Package doesn't contain a README file
A package must contain at least one of README, README.md or README.txt
file.
@@ -122,8 +133,9 @@ http://mirrors.ibiblio.org/CTAN/help/ctan/CTAN-upload-addendum.html#readme
}
pub fn e0010d() {
- println!(
- r#"E0010 -- Broken symlink detected
+ error!(
+ r#"
+E0010 -- Broken symlink detected
A broken symlink was detected.
"#
@@ -131,8 +143,9 @@ A broken symlink was detected.
}
pub fn e0011d() {
- println!(
- r#"E0011 -- Wrong permission for directory
+ error!(
+ r#"
+E0011 -- Wrong permission for directory
Directories should have rwx for the owner and at least r-x for others
(i.e. world readable).
@@ -144,8 +157,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#filepermissions
}
pub fn e0012d() {
- println!(
- r#"E0012 -- CRLF line endings detected
+ error!(
+ r#"
+E0012 -- CRLF line endings detected
The file specified in the error message contains CRLF line endings. Text
files should have UNIX style line endings.
@@ -157,8 +171,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#crlf
}
pub fn e0013d() {
- println!(
- r#"E0013 -- Socket special fie detected
+ error!(
+ r#"
+E0013 -- Socket special fie detected
The file specified in the error message is a socket special file which
is not allowed.
@@ -167,8 +182,9 @@ is not allowed.
}
pub fn e0014d() {
- println!(
- r#"E0014 -- Fifo special file detected
+ error!(
+ r#"
+E0014 -- Fifo special file detected
The file specified in the error message is a fifo special file which is
not allowed.
@@ -177,8 +193,9 @@ not allowed.
}
pub fn e0015d() {
- println!(
- r#"E0015 -- Bloch device file detected
+ error!(
+ r#"
+E0015 -- Bloch device file detected
The file specified in the error message is a block device file which is
not allowed.
@@ -187,8 +204,9 @@ not allowed.
}
pub fn e0016d() {
- println!(
- r#"E0016 -- Character device file detected
+ error!(
+ r#"
+E0016 -- Character device file detected
The file specified in the error message is a character device file which
is not allowed.
@@ -197,8 +215,9 @@ is not allowed.
}
pub fn e0017d() {
- println!(
- r#"E0017 -- PDF document is in error
+ error!(
+ r#"
+E0017 -- PDF document is in error
The PDF document mentioned in the message is in error.
@@ -219,8 +238,9 @@ Example:
}
pub fn e0018d() {
- println!(
- r#"E0018 -- Unwanted directory detected
+ error!(
+ r#"
+E0018 -- Unwanted directory detected
A directory was detected which should not be part of a package. Example:
__MACOSX
@@ -229,8 +249,9 @@ __MACOSX
}
pub fn e0019d() {
- println!(
- r#"E0019 -- Generated file detected
+ error!(
+ r#"
+E0019 -- Generated file detected
In order to avoid redundancy we don't want to have included files in a
package which easily can be generated from other files in the
@@ -248,8 +269,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#nogeneratedfiles
}
pub fn e0020d() {
- println!(
- r#"E0020 -- Unwanted directory detected in the top level directory in TDS zip archive
+ error!(
+ r#"
+E0020 -- Unwanted directory detected in the top level directory in TDS zip archive
The name of a top level directory of a TDS archive must be one of those
listed here: asymptote, bibtex, chktex, context, doc, dvipdfmx, dvips,
@@ -263,8 +285,9 @@ Any other other directory at the top level is an error.
}
pub fn e0021d() {
- println!(
- r#"E0021 -- Error when reading a file
+ error!(
+ r#"
+E0021 -- Error when reading a file
An error was encountered when reading the file specified in the message.
"#
@@ -272,18 +295,20 @@ An error was encountered when reading the file specified in the message.
}
pub fn e0022d() {
- println!(
- r#"E0022 -- Check of an URL in a README file failed
+ error!(
+ r#"
+E0022 -- Check of an URL in a README file failed
-URL checking is in effect. An error occcured when trying to retrieve an
+URL checking is in effect. An error occcurred when trying to retrieve an
URL which was found in the specified README file.
"#
)
}
pub fn e0023d() {
- println!(
- r#"E0023 -- Follow up error when trying to read a directory with insufficient permissions
+ error!(
+ r#"
+E0023 -- Follow up error when trying to read a directory with insufficient permissions
Error which is a follow-up error. For instance, when a directory could
not be read.
@@ -292,8 +317,9 @@ not be read.
}
pub fn e0024d() {
- println!(
- r#"E0024 -- TDS zip archive has wrong permissions
+ error!(
+ r#"
+E0024 -- TDS zip archive has wrong permissions
The TDS zip archive should have at least r-- for the owner and at least
r-- for others (i.e. world readable).
@@ -305,8 +331,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#filepermissions
}
pub fn e0025d() {
- println!(
- r#"E0025 -- Duplicate names when ignoring letter case for files or directories
+ error!(
+ r#"
+E0025 -- Duplicate names when ignoring letter case for files or directories
As there are operating systems which do not distinguish between myfile
and MYFILE we don't want to have file names in a directory which are the
@@ -319,8 +346,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#filenames
}
pub fn e0026d() {
- println!(
- r#"E0026 -- Files not in TDS or different in TDS and non-install tree
+ error!(
+ r#"
+E0026 -- Files not in TDS or different in TDS and non-install tree
The file mentioned in the error message is either not existing in the
TDS zip archive, or it is different to the one in the non-install tree
@@ -329,18 +357,20 @@ TDS zip archive, or it is different to the one in the non-install tree
}
pub fn e0027d() {
- println!(
- r#"E0027 -- An I/O error occured
+ error!(
+ r#"
+E0027 -- An I/O error occurred
-Some kind of I/O error occured. If you believe there is an error in
+Some kind of I/O error occurred. If you believe there is an error in
pkgcheck please contact the author.
"#
)
}
pub fn e0028d() {
- println!(
- r#"E0028 -- A path name in a TDS zip archive must contain the package name
+ error!(
+ r#"
+E0028 -- A path name in a TDS zip archive must contain the package name
The path names in a TDS zip archive must contain the package name.
@@ -356,8 +386,9 @@ follows:
}
pub fn e0029d() {
- println!(
- r#"E0029 -- README file: encoding with BOM detected
+ error!(
+ r#"
+E0029 -- README file: encoding with BOM detected
A README file should be either ASCII or UTF-8 without BOM(byte order
mark)
@@ -369,8 +400,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#readme
}
pub fn e0030d() {
- println!(
- r#"E0030 -- A symlink was found which points outside of the package directory tree
+ error!(
+ r#"
+E0030 -- A symlink was found which points outside of the package directory tree
A symlink must not point to a file or directory outside of the package
directory tree.
@@ -379,17 +411,19 @@ directory tree.
}
pub fn e0031d() {
- println!(
- r#"E0031 -- File name contains invalid UTF-8 character(s)
+ error!(
+ r#"
+E0031 -- File name contains invalid UTF-8 character(s)
-A file name contains invald UTF-8 character(s).
+A file name contains invalid UTF-8 character(s).
"#
)
}
pub fn e0033d() {
- println!(
- r#"E0033 -- Error when unpacking tds archive
+ error!(
+ r#"
+E0033 -- Error when unpacking tds archive
In order to investigate the contents of the TDS zip archive pkgcheck
unpacks the TDS zip archive to a temporary location which failed for the
@@ -399,8 +433,9 @@ reason given in the error message.
}
pub fn e0034d() {
- println!(
- r#"E0034 -- Unwanted file detected in the top level directory in TDS zip archive
+ error!(
+ r#"
+E0034 -- Unwanted file detected in the top level directory in TDS zip archive
A top level directory of a TDS archive should only contain certain
directories but no files.
@@ -409,8 +444,9 @@ directories but no files.
}
pub fn e0035d() {
- println!(
- r#"E0035 -- Unwanted TDS archive detected in package directory tree
+ error!(
+ r#"
+E0035 -- Unwanted TDS archive detected in package directory tree
A package directory should not contain a TDS zip archive.
"#
@@ -418,8 +454,9 @@ A package directory should not contain a TDS zip archive.
}
pub fn e0036d() {
- println!(
- r#"E0036 -- .dtx/.ins files found in wrong directory in TDS zip archive
+ error!(
+ r#"
+E0036 -- .dtx/.ins files found in wrong directory in TDS zip archive
In a TDS zip archive a .dtx resp. .ins file must be in a subdirectory of
either of source/ or doc/ top level directories.
@@ -428,8 +465,9 @@ either of source/ or doc/ top level directories.
}
pub fn e0037d() {
- println!(
- r#"E0037 -- CR line endings detected
+ error!(
+ r#"
+E0037 -- CR line endings detected
The file specified in the error message contains CR line endings. Text
files should have UNIX style line endings.
@@ -441,8 +479,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#crlf
}
pub fn e0038d() {
- println!(
- r#"E0038 -- File has inconsistent line endings: CR: x, LF: y, CRLF: z
+ error!(
+ r#"
+E0038 -- File has inconsistent line endings: CR: x, LF: y, CRLF: z
The file specified in the error message contains CR line endings. Text
files should have UNIX style line endings.
@@ -454,8 +493,9 @@ http://mirror.ctan.org/help/ctan/CTAN-upload-addendum.html#crlf
}
pub fn e0039d() {
- println!(
- r#"E0039 -- No doc/ directory found in the top level directory of the TDS zip archive
+ error!(
+ r#"
+E0039 -- No doc/ directory found in the top level directory of the TDS zip archive
A TDS zip archive is required to contain a top level directory doc/.
"#
@@ -463,8 +503,9 @@ A TDS zip archive is required to contain a top level directory doc/.
}
pub fn e0040d() {
- println!(
- r#"E0040 -- Too few top level directories in the TDS zip archive
+ error!(
+ r#"
+E0040 -- Too few top level directories in the TDS zip archive
The top level directory of a TDS zip archive must contain at least a doc
directory and one or more of the following directories: asymptote,
@@ -478,8 +519,9 @@ Any other other directory at the top level is an error.
}
pub fn e0041d() {
- println!(
- r#"E0041 -- One or more map file found for the package but none of them is in a path starting with fonts/map/dvips
+ error!(
+ r#"
+E0041 -- One or more map file found for the package but none of them is in a path starting with fonts/map/dvips
At least one map file was found which was not in a path starting with
fonts/map/dvips.