summaryrefslogtreecommitdiffstats
path: root/pym/repoman/checks.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken logic in InheritDeprecated.Zac Medico2010-08-221-6/+6
|
* Make InheritDeprecated detect indirect inherits of deprecated eclasses,Zac Medico2010-08-221-5/+20
| | | | and indicate the indirect nature in the error message.
* Make InheritDeprecated check for direct inherits, and give line numbersZac Medico2010-08-221-11/+31
| | | | in error messages.
* repoman: check for deprecated eclasseswired2010-08-221-1/+30
| | | | | | compare the inherited eclasses to a list of deprecated eclasses. print QA warnings for each deprecated eclass found and suggest an alternative for those that have one.
* Add upstream.workaround warning for addpredict calls. Thanks toZac Medico2010-08-211-1/+7
| | | | Diego Pettenò <flameeyes@g.o> for the suggestion.
* Use explicit imports, to make pyflakes happy.Zac Medico2010-08-111-1/+3
|
* Introduce portage.eapi. Use it everywhere.Sebastian Luther2010-08-111-7/+8
|
* Bug #285191 - Add back the RDEPEND.implicit warning to detect the casesZac Medico2010-08-041-1/+34
| | | | | | where DEPEND is set and RDEPEND is unset in the ebuild, since this triggers implicit RDEPEND=$DEPEND assignment (prior to EAPI 4) and is forbidden by the QA team.
* repoman: Check if the prefix.eclass is inherited if eprefixify is used. ↵Sebastian Luther2010-08-041-1/+19
| | | | Thanks to Jeremy Olexa (darkside) for the initial patch.
* Drop deprecated self.eapi saving.Michał Górny2010-07-141-19/+3
|
* Retab.Michał Górny2010-07-141-4/+4
|
* Support BrE spelling 'licence' in UselessDodoc check.Michał Górny2010-07-141-1/+1
|
* Add EAPI 3-defined variables to the readonly check.Michał Górny2010-07-141-1/+8
|
* Make copyright/CVS header checks more strict.Michał Górny2010-07-141-3/+3
|
* Bug #326553 - check for preserve_old_libSamuli Suominen2010-07-081-1/+8
|
* Bug #324075 - Avoid erroneous 'Invalid Gentoo Copyright' warnings whenZac Medico2010-06-151-2/+5
| | | | | the vcs (git) does not support mtime preservation. Also, fix the same check to work for ebuilds wiht copyrigh beginning in 2011 and later.
* also check quoting on the Prefix variables added in EAPI=3, thanks jlec for ↵Fabian Groffen2010-04-051-0/+3
| | | | the suggestion
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Eliminate the PhaseCheck constructor and make PhaseCheck.phases_re a classZac Medico2010-02-261-9/+5
| | | | | | attribute. Thanks to Sebastian Pipping <sping@g.o> for the initial patch. svn path=/main/trunk/; revision=15470
* Bug #299095 - Add a deprecation warning for check_license calls with EAPI >= 3Zac Medico2010-02-221-1/+20
| | | | | | since it is superceded by LICENSE masking. svn path=/main/trunk/; revision=15418
* Add a warning for built_with_use. Thanks to Petteri Räty <betelgeuse@g.o> forZac Medico2010-01-241-2/+7
| | | | | | this patch. svn path=/main/trunk/; revision=15209
* Bug #297541 - Make $(no-as-needed) trigger upstream.workaround warning. ThanksZac Medico2009-12-211-1/+7
| | | | | | to Samuli Suominen <ssuominen@g.o> for this patch. svn path=/main/trunk/; revision=15128
* Add EAPI 3_pre2 to conditinals so the EAPI 4 stuff is disabled.Zac Medico2009-12-111-2/+2
| | | | svn path=/main/trunk/; revision=15035
* Bump EAPI conditionals to account for rename of EAPI 3 to 4. Thanks toZac Medico2009-12-081-8/+8
| | | | | | Jonathan Callen <abcd@g.o> for this patch. svn path=/main/trunk/; revision=14965
* Add src_configure and pkg_config to the list of phases in ↵Arfrever Frehtes Taifersar Arahesis2009-10-041-2/+2
| | | | | | repoman.checks.PhaseCheck.__init__(). svn path=/main/trunk/; revision=14490
* Restrict upstream.workaround to src_compile and src_install as much as possible.Mounir Lamouri2009-10-041-31/+36
| | | | | | Prevent warnings when using emake -j1 in src_test which is recommanded. svn path=/main/trunk/; revision=14489
* Bug #285191 - Remove the RDEPEND.implicit check because it is invalid.Zac Medico2009-10-011-32/+1
| | | | svn path=/main/trunk/; revision=14471
* Remove unused os import.Zac Medico2009-08-191-1/+0
| | | | svn path=/main/trunk/; revision=14096
* Use r'' for regex.Zac Medico2009-08-121-1/+1
| | | | svn path=/main/trunk/; revision=14013
* Bug #281133 - Fix the here-document code inside run_checks() to properlyZac Medico2009-08-121-1/+1
| | | | | | detect the end of a here-document when it is indented by whitespace. svn path=/main/trunk/; revision=14012
* Check for redundant blank lines. Thanks to Markus Meier <maekke@gentoo.org>Zac Medico2009-06-281-1/+20
| | | | | | for this patch. svn path=/main/trunk/; revision=13725
* * Add new abstract PhaseCheck class for ebuild phase-specific checks.Zac Medico2009-06-281-41/+119
| | | | | | | | * Reimplement SrcUnpackPatches using PhaseCheck. * Add new SrcCompileEconf, Eapi3IncompatibleFuncs, and Eapi3GoneVars checks. Thanks to Markus Meier <maekke@gentoo.org> for this patch. svn path=/main/trunk/; revision=13717
* Bug #274742 - Exempt $dir from quoting checks since it's a likely candidateZac Medico2009-06-211-1/+1
| | | | | | for false positives. svn path=/main/trunk/; revision=13659
* Fix SrcUnpackPatches to ignore comment lines. Thanks to Christian RuppertZac Medico2009-05-061-0/+1
| | | | | | <idl0r@g.o> for reporting. svn path=/main/trunk/; revision=13617
* Warn about sed and epatch calls which should be moved from src_unpack toZac Medico2009-04-291-1/+33
| | | | | | src_prepare. Thanks to Markus Meier <maekke@g.o> for the initial patch. svn path=/main/trunk/; revision=13413
* Move the here-document code from the EbuildWhitespace check to theZac Medico2009-04-291-26/+26
| | | | | | | run_checks() function, so that all checks ignore the content of here-documents. svn path=/main/trunk/; revision=13412
* Make EbuildWhitespace ignore here-documents. Thanks to Diego PettenòZac Medico2009-04-291-4/+19
| | | | | | <flameeyes@g.o> for reporting. svn path=/main/trunk/; revision=13411
* Add a new EAPI.definition check for cases in which EAPI is defined after anZac Medico2009-04-261-1/+18
| | | | | | inherit call. Thanks to Markus Meier <maekke@g.o> for the initial patch. svn path=/main/trunk/; revision=13401
* Bug #262365 - Punt the prepalldocs check until there is an alternativeZac Medico2009-03-171-10/+1
| | | | | | available in EAPI 3. svn path=/main/trunk/; revision=13118
* Loosen EMakeParallelDisabled.re so it can match more variations.Zac Medico2009-02-271-1/+1
| | | | svn path=/main/trunk/; revision=12719
* Add a new upstream.workaround check for hardcoded MAKEOPTS=-j1 (previouslyZac Medico2009-02-271-2/+8
| | | | | | | only emake -j1 was recognized). Thanks to Maciej Mrozowski <reavertm@poczta.fm> for this patch. svn path=/main/trunk/; revision=12718
* Add a new "portage.internal" warning for prepalldocs usage since the councilZac Medico2009-02-121-1/+10
| | | | | | | ruled that it shouldn't be used in ebuilds. Thanks to Petteri Räty <betelgeuse@g.o> for the initial patch. svn path=/main/trunk/; revision=12603
* Warn about WANT_AUTO(CONF|MAKE)=latest settings since they are redundant.Zac Medico2009-02-041-1/+13
| | | | | | Thanks to Petteri Räty <betelgeuse@g.o> for the initial patch. svn path=/main/trunk/; revision=12583
* Bug #255358 - Add new RDEPEND.implicit warning to detect the caes where DEPENDv2.2_rc23Zac Medico2009-01-181-1/+28
| | | | | | | is set and RDEPEND is unset in the ebuild, since this triggers implicit RDEPEND=$DEPEND assignment. svn path=/main/trunk/; revision=12529
* Adjust the EbuildNestedDie pattern so that it only matches when ( is surroundedv2.2_rc18Zac Medico2008-12-201-1/+1
| | | | | | | | by whitespace. This filters out false positives triggered by sed expressions in net-analyzer/amap-5.2-r1 and media-libs/libsndfile-1.0.17-r1. Thanks to Diego Pettenò <flameeyes@g.o> for reporting. svn path=/main/trunk/; revision=12265
* Simplify the InheritAutotools pattern by using \b to match word boundaries.Zac Medico2008-12-201-2/+2
| | | | svn path=/main/trunk/; revision=12264
* Bug #251591 - Adjust the InheritAutotools pattern to treat more things ↵Zac Medico2008-12-201-2/+2
| | | | | | | | similar to whitespace. Now it recognizes escaped newlines, || operators, and && operators. svn path=/main/trunk/; revision=12260
* Bug #250212 - Add a new 'upstream.workaround' qa category, and use it forZac Medico2008-12-081-1/+1
| | | | | | | the EMakeParallelDisabled check. Thanks to Mike Auty <ikelos@g.o> for this patch. svn path=/main/trunk/; revision=12179
* Make the EbuildQuote check filter out matches that appear to be an argumentZac Medico2008-11-141-2/+14
| | | | | | | | to a message command. For example: false || ewarn "foo $WORKDIR/bar baz" Thanks to Diego 'Flameeyes' Pettenò <flameeyes@g.o> for reporting this issue (currently triggered by ruby-prof-0.7.0.ebuild). svn path=/main/trunk/; revision=11913
* Add "subversion" to InheritAutotools._exempt_eclasses. Thanks to Arfrever.Zac Medico2008-10-231-1/+3
| | | | svn path=/main/trunk/; revision=11722