summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-08-29bin/merge-driver-ekeyword: mangle exit code correctlySam James
Fixes: 263e3d64adac1ee2968233e151d1ee590532f42d Signed-off-by: Sam James <sam@gentoo.org>
2023-08-29bin/merge-driver-ekeyword: fix compatibility with >=git-2.42.0Sam James
Commit 2b7b788fb31a74bcbff4e4c6efc6f3db6c3a49b7 upstream makes more use of the result from a merge driver. Correctly surface the result from `git merge-file` so that we don't wrongly throw away information but also don't make git think the driver crashed (-1 is for exceptional cases, not "failed to merge"). Signed-off-by: Sam James <sam@gentoo.org>
2023-08-24eclean: Make cleaning invalid defaultSiddhanth Rathod
Bug: https://bugs.gentoo.org/900224 Signed-off-by: Siddhanth Rathod <xsiddhanthrathod@gmail.com> Closes: https://github.com/gentoo/gentoolkit/pull/31 Signed-off-by: Sam James <sam@gentoo.org>
2023-08-22eclean-pkg: placate blackSam James
Signed-off-by: Sam James <sam@gentoo.org>
2023-08-22Drop useless imports (fix flake8)Sam James
Signed-off-by: Sam James <sam@gentoo.org>
2023-08-22eclean-pkg: fix --help alignment, mention shortopt for clean-invalidSam James
Bug: https://bugs.gentoo.org/900224 Signed-off-by: Sam James <sam@gentoo.org>
2023-08-22eclean-pkg: fix --unique-use shortoptSam James
Signed-off-by: Sam James <sam@gentoo.org>
2023-08-22eclean-pkg: add --clean-invalid to help, fix parsingSam James
* Rename --clean-invalids -> --clean-invalid * Add --clean-invalid to help * Make it default-off for now to match the option name (rather than the help saying --no-clean-invalids). (I could go either way on what the actual default should be, but this is more conservative for now.) * Fix typo in option name. * Make it a package specific arg, not a global one. Bug: https://bugs.gentoo.org/900224 Fixes: 204b1abca2c0cbbdad188c7fd4b84452c2f630a0 Fixes: a16d0d4fbfb4614832c4b682b41284a9050af29f Signed-off-by: Sam James <sam@gentoo.org>
2023-08-22eclean-pkg: Limit invalid search to 'packages' actionSiddhanth Rathod
Bug: https://bugs.gentoo.org/900224 Fixes: a16d0d4fbfb4614832c4b682b41284a9050af29f Signed-off-by: Siddhanth Rathod <xsiddhanthrathod@gmail.com> Closes: https://github.com/gentoo/gentoolkit/pull/30 Signed-off-by: Sam James <sam@gentoo.org>
2023-08-21eclean-pkg: deal with invalid binpkgsSiddhanth Rathod
Changes required in portage -> https://github.com/gentoo/portage/pull/1016 Bug: https://bugs.gentoo.org/900224 Signed-off-by: Siddhanth Rathod <xsiddhanthrathod@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
2023-08-21eclean: Add type hintsSiddhanth Rathod
Signed-off-by: Siddhanth Rathod <xsiddhanthrathod@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
2023-08-07Run `pyupgrade --py39-plus`Sam James
Signed-off-by: Sam James <sam@gentoo.org>
2023-08-05equery: reformat with blackSam James
Fixes: 637bfbfb27d2104a81d80e5c67a7878d2e874966 Signed-off-by: Sam James <sam@gentoo.org>
2023-07-18equery: list: correctly handle installed packages no longer in treeRafał Mużyło
Closes: https://bugs.gentoo.org/369581 Signed-off-by: Sam James <sam@gentoo.org>
2023-07-18equery: depgraph: Fix --linear shortopt (-l)Sam James
Closes: https://bugs.gentoo.org/709816 Signed-off-by: Sam James <sam@gentoo.org>
2023-06-17equery.1: Add description of 'keywords' module, fix typo.Alexis
Signed-off-by: Alexis <flexibeast@gmail.com> Closes: https://github.com/gentoo/gentoolkit/pull/29 Signed-off-by: Sam James <sam@gentoo.org>
2023-06-04enalyze/analyze.py: fix typosDiego Viola
Signed-off-by: Diego Viola <diego.viola@gmail.com> Closes: https://github.com/gentoo/gentoolkit/pull/27 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
2023-03-24.editorconfig: add (import from portage)Sam James
Signed-off-by: Sam James <sam@gentoo.org>
2023-03-22Support the NO_COLOR environment variableUlrich Müller
Bug: https://bugs.gentoo.org/902551 Signed-off-by: Ulrich Müller <ulm@gentoo.org> Closes: https://github.com/gentoo/gentoolkit/pull/26 Signed-off-by: Sam James <sam@gentoo.org>
2023-03-20.gitignorerevs: update for Black reformattingSam James
See 5318fb2032cf24beafdda843af83c0a56d6c9dfe. Signed-off-by: Sam James <sam@gentoo.org>
2023-03-20*/*: Reformat with newer BlackSam James
Signed-off-by: Sam James <sam@gentoo.org>
2023-03-20CI: add Python 3.12 alphasSam James
Per https://github.com/actions/setup-python/issues/150, we can just do 3.12-dev and such. Signed-off-by: Sam James <sam@gentoo.org>
2023-03-20CI: update Portage versionSam James
Signed-off-by: Sam James <sam@gentoo.org>
2023-03-20CI: fix Python 3.11 workflow/jobSam James
Use the latest Python 3.11 release. Signed-off-by: Sam James <sam@gentoo.org>
2023-01-07eshowkw: Fix spelling errorGreg Kubaryk
Signed-off-by: Greg Kubaryk <kurly@vt.edu> Signed-off-by: Sam James <sam@gentoo.org>
2022-12-14man: fix path of distfilesVitaly Zdanevich
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru> Closes: https://github.com/gentoo/gentoolkit/pull/23 Signed-off-by: Sam James <sam@gentoo.org>
2022-12-14profile: Default to main repo nameKrzesimir Nowak
In Flatcar we have a different repo marked as a default one (portage-stable), so "equery keywords" was crashing because it was trying to use gentoo repo anyways. Signed-off-by: Krzesimir Nowak <knowak@microsoft.com> Closes: https://github.com/gentoo/gentoolkit/pull/24 Signed-off-by: Sam James <sam@gentoo.org>
2022-12-03ebump: Use `git rev-parse --is-inside-work-tree`Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-12-03ebump: Replace which(1) with `command -v`Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-07-28equery: Set nocolor for piping to after options are parsedBrian Dolbec
Fixes commit 84ffe42e5 which set nocolor before options were parsed. Bug: https://bugs.gentoo.org/861116 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-11equery meta: Put maintainer description on the same lineBrian Dolbec
Bug: https://bugs.gentoo.org/576224 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-11revdep-rebuild.sh: Create its cache dir if it doesn't existBrian Dolbec
Bug: https://bugs.gentoo.org/382009 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
2022-07-10eclean/pkgindex.py: Fix typo in function callBrian Dolbec
File "/usr/lib/python3.10/site-packages/gentoolkit/eclean/pkgindex.py", line 60, in clean_pkgs_index if self.get_emaint_binhost(): AttributeError: 'PkgIndex' object has no attribute 'get_emaint_binhost'. Did you mean: '_get_emaint_binhost'? Also fix too many parameters in line 68 for the self.controller() call Bug: https://bugs.gentoo.org/857555 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
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>