aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* package: update example PORTDIR pathSam James2024-05-031-3/+3
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* Run `pyupgrade --py39-plus`Sam James2023-08-071-6/+6
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* package.py: code cleanup via blackBrian Dolbec2022-07-101-1/+3
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* equery meta: Migrate to portage's MetadataXML classBrian Dolbec2022-07-101-3/+7
| | | | | | | | Portage's metadata handling code was originally ported from gentoolkit. Finally get around to migrating, eliminating duplicate code. Bug: https://bugs.gentoo.org/573030 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* equery meta: Fix missing description when not in metadata.xmlBrian Dolbec2022-07-091-0/+9
| | | | | | | | | Add description property to Package class. If no description in metadata.xml, get the description from the ebuild. Bug: https://bugs.gentoo.org/447538 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* Change tabs to spaces (using autopep8). Also, format repo using black.Wolfgang E. Sanyer2021-09-201-553/+565
| | | | | | | | | | | The following command was used to change the tabs to spaces: autopep8 --in-place --select=E101,E11,E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E133,E20,E211,E22,E224,E224,E226,E227,E228,E231,E241,E242,E251,E252,E26,E265,E266,E27,E301,E302,E303,E304,E305,E306,W291,W293,W391 -r . And then black was run as `black .` on the entire tree Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>
* Remove inherits from objectMatt Turner2020-12-201-1/+1
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* Remove $Header$Matt Turner2020-12-201-2/+0
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* Add (and fix) flake8 checks in toxVirgil Dupras2018-08-141-1/+1
| | | | | | | | | | | | | | Add config in tox to run flake8 checks. For now, only "F*" errors are checked (errors reported by pyflakes). pep8 style checks are ignored for now. This is accompanied by changes in the code that are necessary to silence these errors. Most of them were about unused imports, but also unsed referenced and even undefined ones (meaning that this code path was broken, gotta increase test coverage). This setup will replace pylint which reports way too many errors to be usable (see next commit).
* equery: size: Fix UnicodeDecodeErrorPaul Varner2017-09-061-1/+2
| | | | | | | Encode the filename before calling os.lstat X-Gentoo-Bug: 531636 X-Gentoo-Bug-URL: https://bugs.gentoo.org/531636
* gentoolkit/package.py: Fix dblink call py3 compatibility bug 575788Brian Dolbec2016-09-151-1/+1
|
* equery: respect PORTAGE_CONFIGROOT tooMike Frysinger2013-03-121-0/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* equery: make more ROOT awareMike Frysinger2012-12-201-13/+22
| | | | | | | | | | | | | | This at least fixes: belongs check depends files list size URL: https://bugs.gentoo.org/160815 Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Paul Varner <fuzzyray@gentoo.org>
* package: use portage-9999 in Package.environment doctestW. Trevor King2012-11-111-4/+5
|
* package: use portage-9999 (and define pkg) in Package.ebuild_path doctestW. Trevor King2012-11-111-2/+3
|
* package: use portage-9999 in module doctestW. Trevor King2012-11-111-4/+4
| | | | | It is more likely to stay current (and be masked and uninstalled) than a particular Portage release.
* package: update PackageFormatter doctest to use QueryW. Trevor King2012-11-111-3/+8
| | | | | | | helpers.find_packages has been replaced by the query.Query class. Also temporarily turn off Portage colorization during the doctest, otherwise the CPV value is printed in green.
* package: use print() in PackageFormatter doctest for Python 3 compatibilityW. Trevor King2012-11-111-1/+1
|
* package: change "f" -> "path" to avoid pylint C0103 (Invalid name "f")W. Trevor King2012-11-111-2/+2
|
* package: change "e" -> "error" to avoid pylint C0103 (Invalid name "e")W. Trevor King2012-11-111-2/+2
|
* package: remove shebang from module without __name__ == '__main__' blockW. Trevor King2012-11-111-2/+0
|
* package: wrap long lines to avoid pylint C0301W. Trevor King2012-11-111-9/+20
|
* replace all use of dbapi's PORTDB, VARDB, BINDB assigned variables with the ↵Brian Dolbec2012-07-311-13/+12
| | | | actuall portage calls to take advantage of all 3 being lazyloaded. The assignemt in dbapi causes all 3 to be loaded, slowing down runs that do not need all 3
* Return string from Package.__str__ (Bug 423209)Paul Varner2012-07-241-1/+1
| | | | Patch from Brennan Shacklett
* fix bug 406495. renamed portage.config() parameter from _eprefix to eprefix.Brian Dolbec2012-03-011-2/+2
|
* Fix updated Package class to work correctly with prefix portagePaul Varner2011-07-151-4/+11
|
* Update Package Class to allow passing of local_config.Paul Varner2011-07-151-15/+27
| | | | | The local_config variable determines if the portage.config settings object takes the /etc/portage/package.* files into account.
* add keywords formatter option.dol-sen2011-05-181-1/+9
|
* Merge genscripts revision 481fuzzyray2010-11-151-2/+2
| | | | svn path=/trunk/gentoolkit/; revision=847
* Merge from genscripts r458: douglasjandersonfuzzyray2010-09-221-2/+2
| | | | | | | | | | | | | | | | | Fix for bug #303129: equery meta's keyword sorting should match ekeyword. Merge from genscripts r455: douglasjanderson Small backend and source mods. Merge from genscripts r432: brian.dolbec fix Bug 317899 traceback due to incorrectly using pass instead of continue in two locations. Merge from genscripts r426: andkit add $mask2 to the list of allowed placeholders for --help. svn path=/trunk/gentoolkit/; revision=804
* Document --format option for equeryfuzzyray2010-04-121-3/+3
| | | | svn path=/trunk/gentoolkit/; revision=774
* Sync with genscripts rev 422, includes fixes to eclean and python additions ↵fuzzyray2010-04-081-0/+7
| | | | | | for prefix svn path=/trunk/gentoolkit/; revision=768
* Merge genscripts rev 406fuzzyray2010-03-241-1/+2
| | | | svn path=/trunk/gentoolkit/; revision=756
* Update to genscripts rev 382. This has more fixes for py3k and the modular ↵fuzzyray2010-03-121-26/+19
| | | | | | rewrite of eclean. svn path=/trunk/gentoolkit/; revision=755
* sync with genscripts rev 343. This adds the initial py3k support and the ↵fuzzyray2010-03-091-41/+153
| | | | | | analyse utility to gentoolkit svn path=/trunk/gentoolkit/; revision=751
* Merge genscripts revision 191fuzzyray2010-02-021-50/+52
| | | | svn path=/trunk/gentoolkit/; revision=737
* Merge genscripts rev 146. This changes the unknown masking status in equery ↵fuzzyray2010-01-081-4/+4
| | | | | | list to [??] instead of [XX]. Bug 273096 svn path=/trunk/gentoolkit/; revision=733
* Update Copyright date headersfuzzyray2010-01-071-1/+1
| | | | svn path=/trunk/gentoolkit/; revision=731
* Merge genscripts rev 137, this revision makes the output of equery meta ↵fuzzyray2009-12-141-32/+54
| | | | | | compatible with epkginfo svn path=/trunk/gentoolkit/; revision=722
* Merge genscripts rev 130fuzzyray2009-12-111-26/+37
| | | | svn path=/trunk/gentoolkit/; revision=721
* Merge genscripts rev 123, this unifies the get_env_var/get_env_vars methods ↵fuzzyray2009-12-111-21/+37
| | | | | | as one method called environment svn path=/trunk/gentoolkit/; revision=719
* Merge changes from genscripts rev 121 to fix various tracebacksfuzzyray2009-12-101-1/+1
| | | | svn path=/trunk/gentoolkit/; revision=716
* Merge rev 119 from genscripts repository which contains the first cut at ↵fuzzyray2009-12-091-19/+13
| | | | | | making equery meta output look like epkginfo svn path=/trunk/gentoolkit/; revision=711
* Merge rev 113 from djanderson's genscripts repofuzzyray2009-12-081-398/+268
| | | | svn path=/trunk/gentoolkit/; revision=703
* Apply updates from genscripts repofuzzyray2009-06-031-194/+158
| | | | svn path=/trunk/gentoolkit/; revision=659
* Update to most recent versions and add changes from djandersonfuzzyray2009-05-051-1/+1
| | | | svn path=/trunk/gentoolkit/; revision=599
* Rearrange trunk to support gentoolkit version 0.3. Split into gentoolkit, ↵fuzzyray2009-05-051-0/+582
gentoolkit-dev, and deprecated. Import djanderson's work on the gentoolkit library and equery svn path=/trunk/gentoolkit/; revision=589