summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-01 02:25:18 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-01 02:25:18 +0000
commite0f037138a16a8d3d608fdd1a1fd23f06df5c6f3 (patch)
treeeab6b5c83172c3d7a40615d908884deb64f6b65d /bin
parent052bd7b2a0acf97e890e59fa1693077b8aaae2e8 (diff)
downloadportage-e0f037138a16a8d3d608fdd1a1fd23f06df5c6f3.tar.gz
portage-e0f037138a16a8d3d608fdd1a1fd23f06df5c6f3.tar.bz2
portage-e0f037138a16a8d3d608fdd1a1fd23f06df5c6f3.zip
Add a check for redundant cd "${S}" statements on the first
line of src_(compile|install|test) ebuild methods. Thanks to Petteri Räty <betelgeuse@gentoo.org> for this patch. svn path=/main/trunk/; revision=8351
Diffstat (limited to 'bin')
-rwxr-xr-xbin/repoman6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/repoman b/bin/repoman
index fec17e138..1f10a91d9 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -45,12 +45,12 @@ del os.environ["PORTAGE_LEGACY_GLOBALS"]
try:
from repoman.checks import EbuildWhitespace, EbuildHeader, EbuildQuote, \
- EbuildAssignment, EbuildNestedDie, EbuildUselessDodoc
+ EbuildAssignment, EbuildNestedDie, EbuildUselessDodoc, EbuildUselessCdS
except ImportError:
from os import path as osp
sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), 'pym'))
from repoman.checks import EbuildWhitespace, EbuildHeader, EbuildQuote, \
- EbuildAssignment, EbuildNestedDie, EbuildUselessDodoc
+ EbuildAssignment, EbuildNestedDie, EbuildUselessDodoc, EbuildUselessCdS
try:
import cStringIO as StringIO
@@ -1371,7 +1371,7 @@ for x in scanlist:
myear = time.gmtime(os.stat(path)[ST_MTIME])[0]
contents = StringIO.StringIO(open(path, 'rb').read())
for check in (EbuildWhitespace, EbuildQuote,
- EbuildAssignment, EbuildUselessDodoc):
+ EbuildAssignment, EbuildUselessDodoc, EbuildUselessCdS):
c = check(contents)
errors = c.Run()
for e in errors: