summaryrefslogtreecommitdiffstats
path: root/pym/repoman/errors.py
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2011-01-30 21:52:50 +0100
committerFabian Groffen <grobian@gentoo.org>2011-01-30 21:52:50 +0100
commit8e1c57067c4556ee2c730f0722d344c52cf4888c (patch)
tree38abff2a89ab194ab96fd068751b000f19198878 /pym/repoman/errors.py
parentf3d72b4418d19cae39d3c327699d244bbfad6461 (diff)
downloadportage-8e1c57067c4556ee2c730f0722d344c52cf4888c.tar.gz
portage-8e1c57067c4556ee2c730f0722d344c52cf4888c.tar.bz2
portage-8e1c57067c4556ee2c730f0722d344c52cf4888c.zip
repoman: add check for using offset vars with helpers
New check: NoOffsetWithHelpers. Checks whether helper functions, such as dodir and insinto, are used with offset variables either referring to the installation image (D, ED), the alternate root location (ROOT, EROOT), or the offset prefix (EPREFIX).
Diffstat (limited to 'pym/repoman/errors.py')
-rw-r--r--pym/repoman/errors.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/repoman/errors.py b/pym/repoman/errors.py
index 5ad6be31f..a19e8c5c0 100644
--- a/pym/repoman/errors.py
+++ b/pym/repoman/errors.py
@@ -1,5 +1,5 @@
# repoman: Error Messages
-# Copyright 2007-2010 Gentoo Foundation
+# Copyright 2007-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
COPYRIGHT_ERROR = 'Invalid Gentoo Copyright on line: %d'
@@ -20,4 +20,5 @@ NO_AS_NEEDED = 'Upstream asneeded linking bug (no-as-needed on line: %d)'
PRESERVE_OLD_LIB = 'Upstream ABI change workaround on line: %d'
BUILT_WITH_USE = 'built_with_use on line: %d'
EPREFIXIFY_MISSING_INHERIT = "prefix.eclass is not inherited, but eprefixify is used on line: %d"
+NO_OFFSET_WITH_HELPERS = "Helper function is used with D, ROOT, ED, EROOT or EPREFIX on line :%d"
SANDBOX_ADDPREDICT = 'Ebuild calls addpredict on line: %d'