summaryrefslogtreecommitdiffstats
path: root/pym/repoman/errors.py
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-10-01 10:19:21 +0000
committerAlec Warner <antarus@gentoo.org>2007-10-01 10:19:21 +0000
commit9935644d5f770f8f50dec92e22f3625ba2dc2f27 (patch)
tree40840a08e1ef8817bd1cf3af1c6545d81c44fdaa /pym/repoman/errors.py
parentcecf7ccc10fbbeeaa8c9f72b359fd0a561d3bbbd (diff)
downloadportage-9935644d5f770f8f50dec92e22f3625ba2dc2f27.tar.gz
portage-9935644d5f770f8f50dec92e22f3625ba2dc2f27.tar.bz2
portage-9935644d5f770f8f50dec92e22f3625ba2dc2f27.zip
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
Diffstat (limited to 'pym/repoman/errors.py')
-rw-r--r--pym/repoman/errors.py12
1 files changed, 12 insertions, 0 deletions
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