diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-01 02:25:18 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-01 02:25:18 +0000 |
commit | e0f037138a16a8d3d608fdd1a1fd23f06df5c6f3 (patch) | |
tree | eab6b5c83172c3d7a40615d908884deb64f6b65d /bin/repoman | |
parent | 052bd7b2a0acf97e890e59fa1693077b8aaae2e8 (diff) | |
download | portage-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/repoman')
-rwxr-xr-x | bin/repoman | 6 |
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: |