Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | repoman: check more helper calls for $D, $ED... | Zac Medico | 2011-08-08 | 1 | -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. | ||||
* | Migrate from codecs.open() to io.open(). | Zac Medico | 2011-07-10 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | The io.open() function is the same as the built-in open() function in python3, and its implementation is optimized in python-2.7 and later. In addition to the possible performance improvement, this also allows us to avoid any future compatibility issues with codecs.open() that may arise if it is delegated to the built-in open() function as discussed in PEP 400. The main caveat involved with io.open() is that TextIOWrapper.write() raises TypeError if given raw bytes, unlike the streams returned from codecs.open(). This is mainly an issue for python2 since literal strings are raw bytes. We handle this by wrapping TextIOWrapper.write() arguments with our _unicode_decode() function. Also, the atomic_ofstream class overrides the write() method in python2 so that it performs automatic coercion to unicode when necessary. | ||||
* | repoman: tighten regex for useq and hasq | Zac Medico | 2011-07-08 | 1 | -3/+3 |
| | |||||
* | repoman: centralize code for ignoring comments | Zac Medico | 2011-07-08 | 1 | -6/+11 |
| | |||||
* | repoman: check for deprecated useq and hasq calls | Dane Smith | 2011-07-08 | 2 | -1/+16 |
| | |||||
* | repoman: disallow EMERGE_FROM in EAPI 4 | Zac Medico | 2011-05-31 | 1 | -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 eclasses | Tomas Chvatal | 2011-04-20 | 1 | -0/+5 |
| | |||||
* | repoman: variable.usedwithhelpers ignore quoted | Zac Medico | 2011-02-28 | 1 | -1/+3 |
| | |||||
* | repoman: warn about calls to prepall and preplib | Zac Medico | 2011-02-27 | 1 | -1/+1 |
| | |||||
* | repoman: add back portage.internal check | Zac Medico | 2011-02-25 | 1 | -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 regex | Zac Medico | 2011-02-19 | 1 | -1/+1 |
| | | | | This will fix bug #355621. | ||||
* | repoman: variable.usedwithhelpers ignore comments | Zac Medico | 2011-02-12 | 1 | -1/+1 |
| | | | | This will fix bug #354685. | ||||
* | repoman.herdbase: tolerate expat ImportError | Zac Medico | 2011-02-08 | 1 | -2/+9 |
| | | | | | | We tolerate global scope import failures for optional modules, so that ImportModulesTestCase can succeed (or possibly alert us about unexpected import failures). | ||||
* | Revert "parse_metadata_use(): omit empty text tokens." | Zac Medico | 2011-02-04 | 1 | -2/+1 |
| | | | | | | This reverts commit 52f6b55d51e2accaa446bc5d6920421959289baa. Since split() never return empty tokens, this patch does nothing. | ||||
* | parse_metadata_use(): omit empty text tokens. | Michał Górny | 2011-02-03 | 1 | -1/+2 |
| | |||||
* | NoOffsetWithHelpers: fix invalid errors name | Fabian Groffen | 2011-01-30 | 1 | -1/+1 |
| | |||||
* | repoman: add check for using offset vars with helpers | Fabian Groffen | 2011-01-30 | 2 | -3/+13 |
| | | | | | | | 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). | ||||
* | Use bytes literals. | Arfrever Frehtes Taifersar Arahesis | 2010-12-06 | 1 | -4/+4 |
| | |||||
* | Allow repoman to commit files, which have changes only in SVN properties. | Arfrever Frehtes Taifersar Arahesis | 2010-10-23 | 1 | -2/+2 |
| | |||||
* | Recognize += in RDEPEND.implicit check. | Zac Medico | 2010-10-10 | 1 | -1/+1 |
| | | | | Thanks to Tomas Chvatal <scarabeus@g.o> for reporting. | ||||
* | repoman: Add "x-modular": "xorg-2" to InheritDeprecated check as requested ↵ | Sebastian Luther | 2010-09-09 | 1 | -1/+2 |
| | | | | by scarabeus (bug 326747, comment 6) | ||||
* | Fix parse_metadata_use() to allow use elements containing no flag | Zac Medico | 2010-09-06 | 1 | -1/+2 |
| | | | | | elements since the DTD allows it. Thanks to Mark Loeser <Halcy0n@g.o> for reporting. | ||||
* | Bug #335670 - Make copyright header in herdbase.py refer to "GPL 2 or later" | Zac Medico | 2010-09-02 | 1 | -1/+1 |
| | | | | instead of just GPL-2. | ||||
* | Remove unused imports found by pylint. | Arfrever Frehtes Taifersar Arahesis | 2010-08-29 | 1 | -1/+0 |
| | |||||
* | Support returning multiple flag descriptions when restrict is used. | Michał Górny | 2010-08-27 | 1 | -8/+6 |
| | | | | | | | Return a dict of dicts in parse_metadata_use(), with second-level keys being the restrict strings (or None when no restrict). When generating use.local.desc, use the description from the possibly-highest-matching atom. | ||||
* | Various parse_metadata_use() fixes: | Zac Medico | 2010-08-26 | 1 | -25/+35 |
| | | | | | | | * Allow empty descriptions (backward compatibility). * Support multiple 'use' elements. * If multiple 'flag' elements have the same name attribute, use the first occurance. | ||||
* | Make parse_metadata_use() tolerate empty flag descriptions. | Zac Medico | 2010-08-26 | 1 | -8/+1 |
| | |||||
* | Make parse_metadata_use() emulate the Element.itertext() method from | Zac Medico | 2010-08-26 | 1 | -3/+19 |
| | | | | | python-2.7, so egencache --update-use-local-desc gets all of the inner text. | ||||
* | Fix up error handling for egencache --update-use-local-desc. | Zac Medico | 2010-08-26 | 1 | -2/+6 |
| | |||||
* | Parse flag descriptions in repoman.utilities.parse_metadata_use(). | Michał Górny | 2010-08-26 | 1 | -5/+12 |
| | | | | | | Grab the USE descriptions from metadata.xml within parse_metadata_use(). Instead of a plain flag list, return a dict containing both the flag names and their descriptions. | ||||
* | Bug #334265 - Fix AttributeError triggered by empty herd element in | Zac Medico | 2010-08-24 | 1 | -1/+1 |
| | | | | check_metadata_herds(). | ||||
* | Fix broken logic in InheritDeprecated. | Zac Medico | 2010-08-22 | 1 | -6/+6 |
| | |||||
* | Make InheritDeprecated detect indirect inherits of deprecated eclasses, | Zac Medico | 2010-08-22 | 1 | -5/+20 |
| | | | | and indicate the indirect nature in the error message. | ||||
* | Make InheritDeprecated check for direct inherits, and give line numbers | Zac Medico | 2010-08-22 | 1 | -11/+31 |
| | | | | in error messages. | ||||
* | repoman: check for deprecated eclasses | wired | 2010-08-22 | 1 | -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 to | Zac Medico | 2010-08-21 | 2 | -2/+9 |
| | | | | Diego Pettenò <flameeyes@g.o> for the suggestion. | ||||
* | Use explicit imports, to make pyflakes happy. | Zac Medico | 2010-08-11 | 1 | -1/+3 |
| | |||||
* | Introduce portage.eapi. Use it everywhere. | Sebastian Luther | 2010-08-11 | 1 | -7/+8 |
| | |||||
* | Bug #285191 - Add back the RDEPEND.implicit warning to detect the cases | Zac Medico | 2010-08-04 | 1 | -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 Luther | 2010-08-04 | 2 | -1/+20 |
| | | | | Thanks to Jeremy Olexa (darkside) for the initial patch. | ||||
* | Add FindVCS() to __all__. | Michał Górny | 2010-07-14 | 1 | -0/+1 |
| | |||||
* | Drop deprecated self.eapi saving. | Michał Górny | 2010-07-14 | 1 | -19/+3 |
| | |||||
* | Retab. | Michał Górny | 2010-07-14 | 1 | -4/+4 |
| | |||||
* | Support BrE spelling 'licence' in UselessDodoc check. | Michał Górny | 2010-07-14 | 1 | -1/+1 |
| | |||||
* | Add EAPI 3-defined variables to the readonly check. | Michał Górny | 2010-07-14 | 1 | -1/+8 |
| | |||||
* | Make copyright/CVS header checks more strict. | Michał Górny | 2010-07-14 | 1 | -3/+3 |
| | |||||
* | repoman: don't complain about stray Manifests. | Michał Górny | 2010-07-12 | 1 | -0/+3 |
| | | | | | As repoman regenerates and readds Manifests anyway, there's no reason to complain when one hasn't been added yet. | ||||
* | Rewrite VCS detection code in repoman. | Michał Górny | 2010-07-11 | 1 | -0/+44 |
| | | | | | | Move the real code into repoman.utilities. Support any repository depth for distributed SCMs -- i.e. Sunrise through git-svn. Bail out if more than one control version directory is found at the same depth. | ||||
* | Bug #326553 - check for preserve_old_lib | Samuli Suominen | 2010-07-08 | 2 | -1/+9 |
| | |||||
* | Bug #324075 - Avoid erroneous 'Invalid Gentoo Copyright' warnings when | Zac Medico | 2010-06-15 | 1 | -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. |