summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* v0.5.1gentoolkit-0.5.1Matt Turner2021-03-011-0/+9
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* bin: Handle case of no KEYWORD removalsMatt Turner2021-02-241-4/+5
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* equery: Remove 'changes' subcommandMatt Turner2021-01-045-406/+0
| | | | | | | | | | ChangeLogs have been gone from gentoo.git since the beginning, and Council agreed in 2016 to allow Infra to decide whether to distribute them through rsync, which they have decided not to do [1]. [1] https://projects.gentoo.org/council/meeting-logs/20160410-summary.txt Signed-off-by: Matt Turner <mattst88@gentoo.org>
* gentoolkit: Remove gentoolkit.test.cmpMatt Turner2021-01-023-53/+0
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* bin: Add merge-driver-ekeywordMatt Turner2020-12-311-0/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the KEYWORDS=... assignment is a single line, git struggles to handle conflicts. When rebasing a series of commits that modify the KEYWORDS=... it's usually easier to throw them away and reapply on the new tree than it is to manually handle conflicts during the rebase. git allows a 'merge driver' program to handle conflicts; this program handles conflicts in the KEYWORDS=... assignment. E.g., given an ebuild with these keywords: KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 x86" One developer drops the ~alpha keyword and pushes to gentoo.git, and another developer stabilizes hppa. Without this merge driver, git requires the second developer to manually resolve the conflict which is tedious and prone to mistakes when rebasing a long series of patches. With the custom merge driver, it automatically resolves the conflict. To use the merge driver, configure your gentoo.git as such: gentoo.git/.git/config: [merge "keywords"] name = KEYWORDS merge driver driver = merge-driver-ekeyword %O %A %B %P gentoo.git/.git/info/attributes: *.ebuild merge=keywords Signed-off-by: Matt Turner <mattst88@gentoo.org>
* ekeyword: Use mock from unittestMatt Turner2020-12-281-1/+1
| | | | | | Since we only support Python 3.6+. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* eclean: Remove unneeded __init__ to enable pytestMatt Turner2020-12-201-6/+0
| | | | | | | | | | Prevented the unit test from running: pym/gentoolkit/test/eclean/distsupport.py:435: PytestCollectionWarning: cannot collect test class 'TestDisfiles' because it has a __init__ constructor (from: pym/gentoolkit/test/eclean/test_search.py) Signed-off-by: Matt Turner <mattst88@gentoo.org>
* ekeyword: Fix unit testMatt Turner2020-12-201-20/+18
| | | | | | | | | arch_status changed from a Dict[str] to Dict[Tuple[str, str]], but these bits of test data were not updated. Update the examples while we're here (e.g. arm64 is stable with stable profiles now). Fixes: 459cfba47d25 (ekeyword: Use now-common load_profile_data() from eshowkw) Signed-off-by: Matt Turner <mattst88@gentoo.org>
* ekeyword: Rename unit test so that it runsMatt Turner2020-12-202-2/+2
| | | | | | unittests should be named test_*.py so that they are discoverable. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* Remove unused sys importsMatt Turner2020-12-207-7/+0
| | | | | | Reported by flake8. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* Remove inherits from objectMatt Turner2020-12-2021-28/+28
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* Remove Python < 3 version checksMatt Turner2020-12-2013-48/+3
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* Remove $Header$Matt Turner2020-12-2048-96/+0
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* Remove imports from __future__Matt Turner2020-12-2053-122/+4
| | | | | | gentoolkit supports only Python 3.6+ now, so these are not used. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* metadata.py: Fix duplicated use flag text bug 748129Brian Dolbec2020-10-131-2/+5
| | | | | | | Regression from commit: 517581df206766 link: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=517581df206766fabf10273cde565e0a6dc62829 Gentoo bug: https://bugs.gentoo.org/748129 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* metadata: Drop deprecated ElementTree methodsMikk Margus Möll2020-10-081-5/+4
| | | | | Closes: https://github.com/gentoo/gentoolkit/pull/11 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclean --changed-deps: fix EAPI logic (bug 727596)Zac Medico2020-06-081-8/+10
| | | | | | | | | Use separate variables for binary package and corresponding ebuild EAPI values, since the ebuild EAPI may have changed. This avoids a possible InvalidAtom exception as reported in bug 727596. Bug: https://bugs.gentoo.org/727596 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* v0.5.0gentoolkit-0.5.0Michał Górny2020-04-241-0/+7
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* profile: Add initial support for arches.descMichał Górny2020-04-245-3/+394
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* profile: Update ~arch listMichał Górny2020-04-241-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* ekeyword: Use now-common load_profile_data() from eshowkwMichał Górny2020-04-242-95/+3
| | | | | | | This also fixes 'all' to process all architectures using stable keywords and not just these having stable profiles. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Disable testing on py27Michał Górny2020-04-241-1/+1
| | | | | | | sys-apps/portage is no longer installed for py27, and the tests use global installation. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Extract profile reading code from eshowkw, with tests from ekeywordMichał Górny2020-04-243-77/+142
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* euse: don't fail on repos missing use.descBen Kohler2020-03-161-1/+2
| | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* v0.4.8gentoolkit-0.4.8Matt Turner2020-03-121-0/+6
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* eclean: Add option to delete binpkgs with changed depsMatt Turner2020-03-112-2/+29
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* eclean: Rewrite findPackages()Matt Turner2020-03-061-58/+55
| | | | | | | | I found the original code to be nearly incomprehensible. Instead of populating a dict of potential binpkgs to remove and then removing from the to-be-removed list, just selectively add to-be-removed packages. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* Cherry-pick v0.4.7Michał Górny2020-02-191-0/+5
| | | | | | Accidentally failed to push it to master. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* revdep-rebuild: encode Popen args as utf-8 bytes (bug 709610)Zac Medico2020-02-141-0/+1
| | | | | | | | | Prevent this Popen exception: UnicodeEncodeError: 'ascii' codec can't encode character '\xe8' in position 20: ordinal not in range(128) Bug: https://bugs.gentoo.org/709610#c0 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* tox: Update tested implementation listMichał Górny2020-01-261-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Modernize test assertionsMichał Górny2020-01-268-38/+38
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Pass raw strings for regexp to fix DeprecationWarningsMichał Górny2020-01-2612-20/+20
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eshowkw: Add alpha to ~arch-onlyMichał Górny2020-01-261-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* imlate: Dynamically calculate column width in reportMatt Turner2020-01-021-7/+13
| | | | | | | Also print categories on the line with the package name for much simpler consumption by external tools. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* eclean: Fix typosMatt Turner2019-12-102-3/+3
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* eclean: Delete empty directoriesMatt Turner2019-12-041-0/+4
| | | | | Closes: https://bugs.gentoo.org/671592 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* eclean: Inline _sort_keys methodMatt Turner2019-12-041-15/+6
| | | | | | | | The boilerplate for calling this method was larger than what it actually contained. Additionally I think this change will allow the loop to run on a generator rather than a full list. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* ekeyword: fix for when main-repo != "gentoo"Michael Haubenwallner2019-10-241-2/+4
| | | | | Closes: https://bugs.gentoo.org/698256 Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
* ekeyword: fix for PrefixMichael Haubenwallner2019-10-241-1/+1
| | | | | Bug: https://bugs.gentoo.org/698256 Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
* eclean: tox fix: local variable 'e' is assigned to but never usedZac Medico2019-09-131-1/+1
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* v0.4.6gentoolkit-0.4.6Zac Medico2019-08-181-0/+7
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* glsa-check moved to portage repository (bug 463952)Zac Medico2019-08-185-1228/+0
| | | | | | | | This copy of glsa-check is no longer need since it has moved to the portage repository. Bug: https://bugs.gentoo.org/463952 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* revdep-rebuild: Fix DEFAULTS beeing modified when changing settingscvkbtzx2019-08-181-2/+2
| | | | | Closes: https://github.com/gentoo/gentoolkit/pull/4 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* revdep-rebuild: Fix pass_through_options to handle args containing spacescvkbtzx2019-08-182-13/+12
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* filter_flags: handle default IUSE correctly with reduce_flagZac Medico2019-07-281-10/+9
| | | | | | | Fix comparisons to use the result of reduce_flag. Bug: https://bugs.gentoo.org/690786 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* v0.4.5gentoolkit-0.4.5Virgil Dupras2019-05-111-0/+8
| | | | Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
* Include BDEPEND in dep checksVirgil Dupras2019-05-111-1/+1
| | | | | Bug: https://bugs.gentoo.org/685538 Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
* eshowkw: Add riscv to ~arch-only archesgentoolkit-0.4.4Michał Górny2019-05-111-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Updated NEWS for v0.4.{1,2,3}gentoolkit-0.4.3Virgil Dupras2019-03-311-0/+17
| | | | Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
* Atom.intersects: simplify name-only matching logicVirgil Dupras2018-09-172-11/+12
| | | | | | | | Remove old "optimization". Slicing two strings can't possibly be faster than checking if `.category` is `None`: the call to `.cp` earlier ensures that we've already populated that property. Also, add tests for it.