From 9935644d5f770f8f50dec92e22f3625ba2dc2f27 Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Mon, 1 Oct 2007 10:19:21 +0000 Subject: Add new repoman check classes using StringIO; possibly need some testing, obviously the old code was faster (1 iteration over the file), here we do one iteration per check, StringIO was to try and negate this by doing the checks in memory...how much of a price do we pay here? svn path=/main/trunk/; revision=7894 --- pym/repoman/errors.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pym/repoman/errors.py (limited to 'pym/repoman/errors.py') diff --git a/pym/repoman/errors.py b/pym/repoman/errors.py new file mode 100644 index 000000000..c8734ff4d --- /dev/null +++ b/pym/repoman/errors.py @@ -0,0 +1,12 @@ +# repoman: Error Messages +# Copyright 2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +COPYRIGHT_ERROR = 'Invalid Gentoo Copyright on line: %d' +LICENSE_ERROR = 'Invalid Gentoo/GPL License on line: %d' +CVS_HEADER_ERROR = 'Malformed CVS Header on line: %d' +LEADING_SPACES_ERROR = 'Ebuild contains leading spaces on line: %d' +TRAILING_WHITESPACE_ERROR = 'Trailing whitespace error on line: %d' +READONLY_ASSIGNMENT_ERROR = 'Ebuild contains assignment to read-only variable on line: %d' +MISSING_QUOTES_ERROR = 'Unquoted Variable on line: %d' \ No newline at end of file -- cgit v1.2.3-1-g7c22