summaryrefslogtreecommitdiffstats
path: root/pym/repoman
Commit message (Collapse)AuthorAgeFilesLines
* Make FindPortdir() fall back to have_profile_dir() checks if it can't matchZac Medico2008-11-111-6/+20
| | | | | | | | the current location with anything from PORTDIR_OVERLAY. Assume that an overlay will contain at least a "repo_name" file while a master repo (portdir) will contain at least a "profiles.desc" file. svn path=/main/trunk/; revision=11855
* Make FindPortdir() return (None, None, None) on failure, instead of raisingZac Medico2008-11-111-1/+1
| | | | | | a potentially ambiguous ValueError. svn path=/main/trunk/; revision=11853
* Inside have_profile_dir(), check for existence of profiles.desc since thatZac Medico2008-11-111-1/+1
| | | | | | makes a little more sense thatn checking for package.mask. svn path=/main/trunk/; revision=11852
* Add "subversion" to InheritAutotools._exempt_eclasses. Thanks to Arfrever.Zac Medico2008-10-231-1/+3
| | | | svn path=/main/trunk/; revision=11722
* Bug #243224 - Add an exemption to the inherit.autotools check for ebuilds thatZac Medico2008-10-221-0/+7
| | | | | | | inherit git.eclass since the GIT_BOOTSTRAP variable may be used to call one of autotools functions. svn path=/main/trunk/; revision=11719
* Adjust EMakeParallelDisabled.re to require at least one space after emake.Zac Medico2008-09-011-1/+1
| | | | svn path=/main/trunk/; revision=11482
* Check for calls to the deprecated bindnow-flags function. Thanks to DiegoZac Medico2008-08-312-1/+8
| | | | | | "Flameeyes" Pettenò for the suggestion. svn path=/main/trunk/; revision=11481
* Add a warning for emake -j1 calls which disable parallelization. Thanks toZac Medico2008-08-312-1/+9
| | | | | | Diego "Flameeyes" Pettenò for the suggestion. svn path=/main/trunk/; revision=11480
* * Fix parse_metadata_use() to raise ParseError instead of the ExpatErrorZac Medico2008-08-141-1/+17
| | | | | | | | that was reported by grobian. * Define __all__. svn path=/main/trunk/; revision=11407
* Remove unused parse_use_local_desc() function.Zac Medico2008-08-051-22/+0
| | | | svn path=/main/trunk/; revision=11330
* Bug #199788 - Make repoman parse GLEP 56 USE flag descriptions fromZac Medico2008-07-181-0/+33
| | | | | | | metadata.xml (in addition to use.local.desc). Thanks to Doug Goldstein <cardoe@g.o> for this patch. svn path=/main/trunk/; revision=11126
* Fix a few typos found with pyflakes. Thanks to Cardoe for reporting.Zac Medico2008-07-111-3/+5
| | | | svn path=/main/trunk/; revision=11018
* Pass a Package instance into LineCheck.new(), and use this to avoidZac Medico2008-06-191-10/+10
| | | | | | | passing the ebuild mtime into the EbuildHeader constructor (the mtime is given when the new() method is called). svn path=/main/trunk/; revision=10725
* Refactor the 'inherit.autotools' and 'IUSE.undefined' checksZac Medico2008-06-191-26/+66
| | | | | | into classes derived from LineCheck. svn path=/main/trunk/; revision=10723
* As suggested by remi`, make the 'inherit.autotools' check only ebuilds thatZac Medico2008-06-181-8/+6
| | | | | | | inherit the autotools eclass directly (rather than indirectly through an eclass such as apache-2 or x-modular). svn path=/main/trunk/; revision=10715
* Add an exemption for x-modular in the "inherit.autotools" check. Thanks toZac Medico2008-06-181-3/+4
| | | | | | remi` for reporting. svn path=/main/trunk/; revision=10714
* Fix the 'inherit.autotools' check to account for apache-2_src_unpack()Zac Medico2008-06-141-0/+5
| | | | | | calling eautoreconf. svn path=/main/trunk/; revision=10653
* Add additional functions such as eaclocal and eautoheader to theZac Medico2008-06-081-1/+5
| | | | | | inherit.autotools regex. Thanks to Arfrever. svn path=/main/trunk/; revision=10602
* Make repoman pass Package instances into run_checks(), so that the checksZac Medico2008-06-081-3/+3
| | | | | | can use the Package.mtime and inherited attributes. svn path=/main/trunk/; revision=10600
* Bug #224271 - New check 'IUSE.undefined', renamed from genericZac Medico2008-06-071-1/+1
| | | | | | 'ebuild.minorsyn'. svn path=/main/trunk/; revision=10593
* As suggested by Flameeyes, add a new 'inherit.autotools' check which warnsZac Medico2008-06-071-3/+13
| | | | | | | when autotools has been inherited but none of the eautomake, eautoconf or eautoreconf functions are called like they are supposed to be. svn path=/main/trunk/; revision=10592
* Bug #224271 - Add a 'IUSE is not defined' ebuild.minorsyn warning.Zac Medico2008-06-071-0/+7
| | | | svn path=/main/trunk/; revision=10589
* Add subversion support for repoman (patch by Fabien Groffen, ↵Marius Mauch2008-05-131-6/+15
| | | | | | http://archives.gentoo.org/gentoo-portage-dev/msg_b7080f212c3eb09c943a1ce5a7356f01.xml) svn path=/main/trunk/; revision=10325
* Fix the EbuildQuote check to ignore "echo" and the elog functions sinceZac Medico2008-04-271-1/+4
| | | | | | people might not want quotes in those cases. svn path=/main/trunk/; revision=10006
* Add a new "ebuild.patches" check for the PATCHES variable that's used byZac Medico2008-03-292-3/+10
| | | | | | | | base_src_unpack() from base.eclass. This generates a warning if the variable is not defined as an array, since this is required for white space safety. Thanks to Betelgeuse for the initial patch. svn path=/main/trunk/; revision=9587
* Bug #212621 - Make the EbuildQuote check do quoting validation for miscZac Medico2008-03-251-1/+8
| | | | | | variables from games.eclass. svn path=/main/trunk/; revision=9507
* Various repoman fixes, plus a weird lockfile tracekback in news.Alec Warner2008-02-241-2/+4
| | | | svn path=/main/trunk/; revision=9377
* Bug #211067 - Make the "portdir_overlay" and "mydir" variables containZac Medico2008-02-221-4/+6
| | | | | | | | | | paths that are consistent wrt eachother regardless of any path irregularities that can be induced by symlinks. Consistency is achieved by regenerating one of the paths to ensure that both paths have the exact same mapping between inodes and paths. This consistency ensures that the path manipulations used to calculate "repolevel" will work as intended. svn path=/main/trunk/; revision=9365
* fix more trivial issues breaking repomanv2.2_pre2Marius Mauch2008-02-101-1/+2
| | | | svn path=/main/trunk/; revision=9328
* Add DISTDIR to the EbuildQuote.var_names. Thanks to Betelgeuse.Zac Medico2008-02-081-1/+1
| | | | svn path=/main/trunk/; revision=9290
* - Remove ebuild.autotools repoman check since it produces lotsZac Medico2008-01-301-14/+1
| | | | | | | | | of false positives (bug #207104) and its hard to parse bash - Use QA_INTERCEPTORS in ebuild.sh to implement a runtime 'QA Notice' when autotools is called directly svn path=/main/trunk/; revision=9235
* Pull more functions out of repoman proper and into repoman.utilitiesAlec Warner2008-01-271-2/+178
| | | | svn path=/main/trunk/; revision=9226
* import ordering, prevent errors from mucking up module namespace in checks, ↵Alec Warner2008-01-271-18/+26
| | | | | | fix typo from last commit, rename 'm' to autotools_match, fix spacing between classes svn path=/main/trunk/; revision=9225
* Move random functions out of repoman and into utilties.pyAlec Warner2008-01-261-0/+188
| | | | svn path=/main/trunk/; revision=9221
* Check for quoted ${A}. Thanks to maekke for this patch.Zac Medico2008-01-181-1/+12
| | | | svn path=/main/trunk/; revision=9206
* Add a new "ebuild.autotools" check for when ebuilds callZac Medico2008-01-111-4/+18
| | | | | | | autotools directly instead of using autotools.eclass. Thanks to Betelgeuse for the initial patch. svn path=/main/trunk/; revision=9179
* Make the EbuildQuote.missing_quotes regex accept singleZac Medico2007-11-101-2/+2
| | | | | | | | quotes where it accepts double quotes in order to eliminate some false positives. Thanks to Krzysiek Pawlik <nelchael@gentoo.org> for reporting. svn path=/main/trunk/; revision=8485
* Convert all the checks in repoman.checks to use a new LineCheckZac Medico2007-11-101-179/+106
| | | | | | | | | | | | | | | | | interface that takes a single line as an argument. This has at least a few of benefits: * Eliminates lots of redundant code * Error messages are ordered by line number across all checks The performance is slightly worse due to the increased number of method calls, but it's not really noticeable in comparison to the time consumed by dependency checks. Thanks to Petteri Räty <betelgeuse@gentoo.org> for the initial patch which I only made a few minor modifications to. svn path=/main/trunk/; revision=8483
* Fix 'TypeError: not all arguments converted during string formatting'Zac Medico2007-11-051-1/+1
| | | | | | issues with the EbuildNestedDie check. svn path=/main/trunk/; revision=8429
* Properly escape { and } characters in regular expressions evenZac Medico2007-11-011-3/+3
| | | | | | though it seems to work either way. svn path=/main/trunk/; revision=8355
* Remove an extra \$ from the EbuildQuote.var_reference regexZac Medico2007-11-011-1/+1
| | | | | | | so that it will properly match things like variable references without braces, like $S. svn path=/main/trunk/; revision=8354
* Make the EbuildUselessCdS check for both quoted and unquoted ${S}Zac Medico2007-11-011-1/+1
| | | | | | | so the user doesn't have to fix quoting before this check will recognize the violation. svn path=/main/trunk/; revision=8353
* Add a check for redundant cd "${S}" statements on the firstZac Medico2007-11-012-1/+23
| | | | | | | 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
* Bug #196652 - Check for useless ABOUT-NLS|COPYING|LICENSEZac Medico2007-10-231-0/+19
| | | | | | files in dodoc arguments. svn path=/main/trunk/; revision=8236
* Make the EbuildQuote check ignore lines beginningZac Medico2007-10-051-1/+1
| | | | | | | with local or export builtins since unquoted assignments are okay there. svn path=/main/trunk/; revision=7942
* In the EbuildQuote check, combine the var_assignmentZac Medico2007-10-031-4/+1
| | | | | | | | regex together with the ignore_line regex. This also fixes an issue with the var_assignment regex allowing violations like `make DESTDIR=${D}` to slip through. svn path=/main/trunk/; revision=7904
* Filter some false positives out of the EbuildQuote check.Zac Medico2007-10-021-13/+48
| | | | | | | It might work well enough now so that we don't have to degrade it to a warning. svn path=/main/trunk/; revision=7901
* Rename checks as the naming was overkill (they are all obviously checks ↵Alec Warner2007-10-012-6/+24
| | | | | | being in the check module), add nesteddie check svn path=/main/trunk/; revision=7898
* keep old repoman names so we don't confuse peopleAlec Warner2007-10-011-1/+1
| | | | svn path=/main/trunk/; revision=7896
* Add new repoman check classes using StringIO; possibly need some testing, ↵Alec Warner2007-10-013-0/+189
obviously the old code was faster (1 iteration over the file), here we do one iteration per check, StringIO was to try and negate this by doing the checks in memory...how much of a price do we pay here? svn path=/main/trunk/; revision=7894