summaryrefslogtreecommitdiffstats
path: root/pym/repoman/checks.py
Commit message (Collapse)AuthorAgeFilesLines
* Add workaround for Python 2.6.4 issue 4978Zac Medico2013-01-181-1/+2
| | | | | Avoid "TypeError: keywords must be strings" issue triggered by unicode_literals: http://bugs.python.org/issue4978
* Use unicode_literals more.Zac Medico2013-01-181-1/+3
| | | | | This helps to ensure consistent results, regardless of whether we're using Python 2 or Python 3.
* repoman: usex check 4-python and 4-slot-abiZac Medico2013-01-011-1/+1
|
* repoman: handle EAPI 5 usex, bug #449678Zac Medico2013-01-011-4/+13
|
* makeopts_jobs is declared in multiprocessing, not eutils.Michał Górny2012-12-151-2/+8
|
* Fix some typos and improve amount of whitespace.Arfrever Frehtes Taifersar Arahesis2012-11-221-10/+10
|
* Bug #440680: Add boost-utils to list of deprecated eclasses.Arfrever Frehtes Taifersar Arahesis2012-11-221-0/+1
|
* Automatically generate list of repoman checks.Arfrever Frehtes Taifersar Arahesis2012-11-221-13/+3
| | | | | This also reenables InheritDeprecated check, which has been disabled in commit 597826a1cabf654f9b3fff88425d04303e921577.
* Add Package.eapi property.Zac Medico2012-11-171-2/+2
|
* Deprecate python-distutils-ng.Michał Górny2012-10-311-0/+1
| | | | python-r1 & distutils-r1 are almost drop-in replacements.
* repoman: check EXTRA_ECONF/EMAKE, bug #437348Zac Medico2012-10-081-1/+14
|
* repoman: simplify EbuildAssignment checkZac Medico2012-10-081-9/+1
| | | | | | | The line continuation code is no longer needed since commit a1578c654f26cab07309bc9cbddd3c95c0c205b5, because wrapped lines are automatically joined before they are passed to the check. Also, inherit ignore_comment = True from LineCheck.
* repoman: remove IUSE.undefined checkZac Medico2012-08-081-21/+1
| | | | | | | This was suggested in the "Don't require assignment of empty variables in ebuilds?" thread on the gentoo-dev mailing list: http://thread.gmane.org/gmane.linux.gentoo.devel/78806
* InheritEclass: add user esethome funcZac Medico2012-06-201-1/+1
|
* InheritEclass: avoid false positive in func regexZac Medico2012-06-081-5/+6
|
* InheritEclass: avoid false positive in func regexZac Medico2012-06-071-2/+5
|
* InheritEclass: exempt auto/libtool for multilibZac Medico2012-06-031-1/+1
|
* InheritEclass: exempt autotools for libtoolZac Medico2012-06-031-1/+2
|
* InheritEclass: remove unused inherited_api codeZac Medico2012-06-011-14/+0
|
* InheritEclass: exempt eclasses that export src_*Zac Medico2012-06-011-3/+35
| | | | | We really need to annotate exceptions like these directly in the eclasses, but hardcode them for now.
* InheritEclass: kde4-base exemptionsZac Medico2012-06-011-2/+2
|
* InheritEclass: add stable / conservative modeZac Medico2012-06-011-2/+28
|
* InheritEclass: base and cmake-utils exemptionsZac Medico2012-05-311-1/+5
|
* InheritEclass: support inherit after && or ||Zac Medico2012-05-311-1/+1
|
* InheritEclass: exempt vim for eutilsZac Medico2012-05-311-1/+1
|
* InheritEclass: fix autotools for polylib-9999Zac Medico2012-05-301-2/+2
|
* InheritEclass: support subclass inherited_apiZac Medico2012-05-301-5/+18
|
* InheritEclass: move eclass info to a dictZac Medico2012-05-301-84/+91
| | | | | This handles the info more like it will be handled when we parse it directly from eclasses.
* Use any() to optimize intersection operations.Zac Medico2012-05-301-1/+1
|
* repoman: add a mini framework for checking eclasses, and fill it outMike Frysinger2012-05-251-48/+113
| | | | | | | | | | | | | Rather than copying & pasting the same behavior for the different eclass checks, add a common class for them to extend. This makes adding more eclass checks trivial, and keeps down bitrot. This does abuse the checking interface slightly -- the eclass will change its category between unused and missing based on the checks. URL: https://bugs.gentoo.org/417159 URL: https://bugs.gentoo.org/417231 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* repoman: unroll escaped lines so we can check the entirety of itMike Frysinger2012-05-251-12/+53
| | | | | | | | | Sometimes people wrap long lines in their ebuilds to make it easier to read, but this causes us issues when doing line-by-line checking. So automatically unroll those lines before passing the full content down to our checkers. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Parse EAPI with pattern from PMS section 7.3.1.Zac Medico2012-05-091-4/+3
| | | | | | | | This implements the specification that was approved in Gentoo's council meeting on May 8, 2012 (see bug #402167). The parse-eapi-ebuild-head FEATURES setting is now enabled by default, and causes non-conformant ebuilds to be treated as invalid. This behavior will soon become enabled unconditionally.
* repoman: fix portage.internal false positivesZac Medico2012-04-231-2/+6
|
* EapiDefinition: handle impossible "%d" % Nonev2.2.0_alpha101Zac Medico2012-04-221-3/+3
|
* repoman: update EAPI.definition check for PMSZac Medico2012-04-151-9/+25
| | | | | | The plan is to update PMS section 8.3.1 as discussed here: http://archives.gentoo.org/gentoo-pms/msg_ef7635aa655913f2386e64e385f5a6ae.xml
* repoman: fix ebuild.badheader for bug #403705Zac Medico2012-02-141-0/+1
|
* repoman: check for env-update, bug #402339Zac Medico2012-02-121-1/+1
|
* Add repoman warning about bash-completion deprecation.Michał Górny2011-09-101-0/+1
|
* repoman: check more helper calls for $D, $ED...Zac Medico2011-08-081-1/+1
| | | | | | This adds docinto, docompress, fowners and fperms to the variable.usedwithhelpers check. Notably absent is dosed since that supports mixed input. This will fix bug #377303.
* 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
|