summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-07-10Revert "setup.py: migrate to setuptools"Brian Dolbec
This reverts commit bbbde97b5e625a49a1a66e307931548cb33f260b. setuptools only installs data files to the python pkg directory Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-10NEWS: update for point releaseBrian Dolbec
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-10setup.py: migrate to setuptoolsBrian Dolbec
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-10equery check.py: Fix flake 8 qa for unused variableBrian Dolbec
flake8 did not correctly detect the way the variable is used. Add an assert to eliminate the false detection. Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-10depends.py: Fix 3e35553df46 missing Package importBrian Dolbec
Remove unused FORMAT_TMPL_VARS import Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-10v0.6.0Brian Dolbec
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-10equery depends: Fix a traceback due to UnboundLocalError:Brian Dolbec
File "/home/brian/Dev/git/gentoolkit/pym/gentoolkit/equery/depends.py" , line 106, in format_depend self.print_fn(indent, str(dep.cpv), use_conditional, formatted_dep) UnboundLocalError: local variable 'formatted_dep' referenced before assignment The statement appears to be added as preliminary debug info. Removed it. Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-10equery check: Fix exception handling for Insufficient permissionsAlexander Miller
A quick look into the source reveals that there is actually code to handle the case, but it expects the wrong exception type. This patch fixes that and also avoids a crash for other errors. Bug: https://bugs.gentoo.org/494134 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-10package.py: code cleanup via blackBrian Dolbec
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-10equery meta: Migrate to portage's MetadataXML classBrian Dolbec
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>
2022-07-09equery meta: Fix missing description when not in metadata.xmlBrian Dolbec
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>
2022-07-09Fix typo "informations" revdep-rebuild & eshowkwBrian Dolbec
original Author: buchner.johannes@gmx.at Bug: https://bugs.gentoo.org/648444 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-09equery: Turn off color when piping is setBrian Dolbec
Bug: https://bugs.gentoo.org/506394 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-09enalyze: Fix missing newline at end of saved rebuild filesBrian Dolbec
Bug: https://bugs.gentoo.org/626308 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-09eclean: add early return for empty DISTDIRBrian Dolbec
Gentoo-bug-url: https://bugs.gentoo.org/703282 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-09eclean: Complete migration to imported emaint codeBrian Dolbec
eclean-pkg now uses imported emaint binhost code to run, Properly handle --quiet option for progressbar suppression from emaint. Keeps the standalone emaint binhost subprocess call as backup. Closes: https://bugs.gentoo.org/688550 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-09ekeyword: remove .ebuild file suffix requirement (bug 762331)Zac Medico
We'd like to use ekeyword in a git merge driver implementation, but the files that the driver will pass to ekeyword do not necessarily have a .ebuild suffix. Therefore, it would be handy to be able to distinguish ebuild arguments some other way. If the ignorable_arg(arg) function returns False and os.path.isfile(arg) returns True, then simply assume that the argument is an ebuild. Bug: https://bugs.gentoo.org/762331 Signed-off-by: Zac Medico <zmedico@gentoo.org> Closes: https://github.com/gentoo/gentoolkit/pull/13 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-09revdep-rebuild.sh: use awk instead of gawkHadrien Lacour
Bug: https://bugs.gentoo.org/652078 Signed-off-by: Zac Medico <zmedico@gentoo.org> Closes: https://github.com/gentoo/gentoolkit/pull/6 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-09equery: run blackSam James
Signed-off-by: Sam James <sam@gentoo.org>
2022-07-08equery: Add -F TMPL option to depends moduleArno Bauernöppel
Like in other modules it is now possible to format the output of the equery module 'depends' with the commandline switch '-F' and TMPL. The man page was adujusted. A new static method 'print_formated' was created. In method 'format_depend' is checked if the new option is present. Depending on the check the PackageFormatter is used to display the dependencies. manually apply github PR, some minor editing. Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-08equery: update linguas->l10n optionMartin Matous
Signed-off-by: Martin Matous <m@matous.dev> Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-08metadata.py: Don't fail on unmatched packageMarco Sirabella
Added a warning hook too to reuse the GentoolkitNoMatches machinery This allows users to do something like: equery list @selected | xargs equery metadata successfuly, even if there are some selected packages that don't exist anymore. Signed-off-by: Marco Sirabella <marco@sirabella.org> Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-08Add -f/--forced-masked to equery(1)Oskari Pirhonen
Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-08Add -f/--forced-masked to equery usesOskari Pirhonen
Option to include forced and masked USE flags in `equery uses` output. - Marked with F / M in verbose/normal output - Marked with (+flag) / (-flag) in non-verbose/piped output Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-08eshowkw: make black happyMike Gilbert
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
2022-07-08revdep-rebuild: set up a child logger with propagate = FalseMike Gilbert
This prevents log messages from being emitted more than once, especially by the root level loggger. Bug: https://bugs.gentoo.org/838406 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
2022-06-08eshowkw: Fix missing dash for -r? ebuilds in versionlist outputBrian Dolbec
Turns out the real issue causing the row alignment issue was this. The code inadvertently dropped the dash display which in turn caused the row alignment issue. Reverts: 4695379c1921865d7763669580ac909ea94db90d Gentoo-bug-url: https://bugs.gentoo.org/503366 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-06-07eshowkw: Correctly fix row alignment issue bug 503366Brian Dolbec
Reverts: 42cf522c06080d Changes the content_length correctly for versionlist output Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-06-07eshowkw: Fix bug 503366 row alignment issueBrian Dolbec
The first element in the plain_list was a "------" string. This was causing the corner image to throw off the row alignment between the two columns. This fix corrects the alignment, but removes the "------" above the keywords to complete the header seperator line. Gentoo-bug-url: https://bugs.gentoo.org/503366 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-06-01fix missing short option "-u" for --unique-useYixun Lan
Signed-off-by: Yixun Lan <dlan@gentoo.org>
2022-05-28implement --unique-use option for eclean-pkgYixun Lan
this will help to clean duplicated binpkg which has exact same USEs flags enabled, and it will choose the more recent version according to BUILD_TIME by default Closes: https://bugs.gentoo.org/727576 Closes: https://github.com/gentoo/gentoolkit/pull/20 Signed-off-by: Yixun Lan <dlan@gentoo.org>
2022-05-19tox.ini, github: add Python 3.10 final, add Python 3.11Sam James
Signed-off-by: Sam James <sam@gentoo.org>
2022-05-15euse: egrep -> grep -ESam James
egrep is considered an obsolete alias and newer greps will warn on this. Signed-off-by: Sam James <sam@gentoo.org>
2022-03-17man: Switch to https linksMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2022-03-17man: Escape hyphens and line wrapMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2022-03-16Remove remnants of herds supportMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2022-03-16imlate: Remove 'experimental' codeMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2022-02-09Remove AUTHORS*Matt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2022-02-09Remove ChangeLogMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2022-02-09*/*: drop obsolete Changelog referencesSam James
We got rid of Changelogs years ago in ::gentoo and most Portage support is gone too. Closes: https://bugs.gentoo.org/832369 Signed-off-by: Sam James <sam@gentoo.org>
2022-02-09.gitignorerevs: add Black 22.1.0 reformatting commitSam James
Signed-off-by: Sam James <sam@gentoo.org>
2022-02-09*/*: reformat with latest Black 22.1.0Sam James
Signed-off-by: Sam James <sam@gentoo.org>
2021-09-21Fix flake F401 'imported but unused' errorWolfgang E. Sanyer
Closes: https://github.com/gentoo/gentoolkit/pull/17 Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>
2021-09-21Add github action for flakeWolfgang E. Sanyer
Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>
2021-09-21Add CI badge to README for unit testsWolfgang E. Sanyer
Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>
2021-09-21Add github action unit-test CIWolfgang E. Sanyer
Closes: https://github.com/gentoo/gentoolkit/pull/16 Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>
2021-09-20README.md: Improve formatting and remove gentoolkit-dev refsMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2021-09-20tox: Update tested implementation listMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2021-09-20Add github action to check formattingWolfgang E. Sanyer
Closes: https://github.com/gentoo/gentoolkit/pull/15 Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>
2021-09-20Rename README.dev to CONTRIBUTING.md. Also, add information...Wolfgang E. Sanyer
...regarding how to use black for formatting code, and how to ignore formatting-only commits in git. Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>