summaryrefslogtreecommitdiffstats
path: root/pym/repoman/checks.py
Commit message (Collapse)AuthorAgeFilesLines
* repoman: tighten regex for useq and hasqZac Medico2011-07-081-3/+3
|
* repoman: centralize code for ignoring commentsZac Medico2011-07-081-6/+11
|
* repoman: check for deprecated useq and hasq callsDane Smith2011-07-081-1/+14
|
* repoman: disallow EMERGE_FROM in EAPI 4Zac Medico2011-05-311-2/+3
| | | | | | We already have the Eapi4GoneVars check for AA and KV which were removed in EAPI 4, so we can re-use it to disallow EMERGE_FROM. This will fix bug #368865.
* repoman: deprecate more eclassesTomas Chvatal2011-04-201-0/+5
|
* repoman: variable.usedwithhelpers ignore quotedZac Medico2011-02-281-1/+3
|
* repoman: warn about calls to prepall and preplibZac Medico2011-02-271-1/+1
|
* repoman: add back portage.internal checkZac Medico2011-02-251-1/+11
| | | | | | This check got removed for bug #262365, but now that EAPI 4 is released we can add it back. Now it checks for ecompress/ecompressdir too (for bug #218347).
* repoman: variable.usedwithhelpers tighten regexZac Medico2011-02-191-1/+1
| | | | This will fix bug #355621.
* repoman: variable.usedwithhelpers ignore commentsZac Medico2011-02-121-1/+1
| | | | This will fix bug #354685.
* NoOffsetWithHelpers: fix invalid errors nameFabian Groffen2011-01-301-1/+1
|
* repoman: add check for using offset vars with helpersFabian Groffen2011-01-301-2/+11
| | | | | | | 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).
* Recognize += in RDEPEND.implicit check.Zac Medico2010-10-101-1/+1
| | | | Thanks to Tomas Chvatal <scarabeus@g.o> for reporting.
* repoman: Add "x-modular": "xorg-2" to InheritDeprecated check as requested ↵Sebastian Luther2010-09-091-1/+2
| | | | by scarabeus (bug 326747, comment 6)
* 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