aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into prefixprefixFabian Groffen2021-04-16107-3194/+2145
|\ | | | | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
| * SimpleRepomanTestCase: update portage.const.EPREFIX after forkZac Medico2021-04-111-0/+1
| | | | | | | | | | | | | | | | | | | | Update portage.const.EPREFIX in each RepomanRun fork, since the portage.const PORTAGE_OVERRIDE_EPREFIX logic only executes when the module is first loaded in the parent process. Fixes: ba58bc1ae12a ("SimpleRepomanTestCase: collect results from subprocesses") Bug: https://bugs.gentoo.org/779508 Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * man/emerge.1: fix typosThomas Deutschmann2021-04-051-1/+1
| | | | | | | | | | | | | | Fixes: 3253686e9438 ("emerge: make --binpkg-respect-use=y imply --autounmask-use=n") Bug: https://bugs.gentoo.org/773469 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * repoman: fix --version TypeErrorZac Medico2021-04-042-2/+3
| | | | | | | | | | Bug: https://bugs.gentoo.org/779967 Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * SimpleRepomanTestCase: use -vvvv for debug modeZac Medico2021-03-311-0/+2
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * repoman: fix ModuleConfig _not_installed path (bug 779055)Zac Medico2021-03-311-2/+2
| | | | | | | | | | Bug: https://bugs.gentoo.org/779055 Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * repoman/lib/repoman/argparser.py: W0611: Unused import sys (unused-import)Zac Medico2021-03-301-1/+0
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * repoman: correct parse_args local sys.argv referenceZac Medico2021-03-301-2/+2
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * repoman: Update for a repoman-3.0.3 releaserepoman-3.0.3Zac Medico2021-03-292-1/+7
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Updates for portage-3.0.18 releaseportage-3.0.18Zac Medico2021-03-293-1/+12
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * SyncRepos: suppress portage update message if PYTHON_TARGETS changedZac Medico2021-03-282-7/+48
| | | | | | | | | | | | | | | | When PYTHON_TARGETS changed, the emerge --oneshot portage suggestion a nuisance, therefore suppress it. Bug: https://bugs.gentoo.org/722748 Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * repoman: add variable.phase check like pkgcheck VariableScopeCheck (bug 608664)Zac Medico2021-03-287-12/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | The variable.phase check is inspired by pkgcheck's VariableScopeCheck, and uses essentially the same PMS data to drive the check. References: - https://projects.gentoo.org/pms/7/pms.html#x1-10900011.1 - https://pkgcore.github.io/pkgcheck/_modules/pkgcheck/checks/codingstyle.html#VariableScopeCheck - https://bugs.gentoo.org/775191 Bug: https://bugs.gentoo.org/608664 Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * SimpleRepomanTestCase: compare QATracker results to expected valuesZac Medico2021-03-281-7/+22
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * glsa-check: suppress line 293 newline for --quiet (bug 719260)Zac Medico2021-03-281-1/+2
| | | | | | | | | | | | Bug: https://bugs.gentoo.org/719260#c2 Reported-by: Ramon Fischer <Ramon_Fischer@hotmail.de> Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * SimpleRepomanTestCase: collect results from subprocessesZac Medico2021-03-281-6/+67
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * repoman: change sys.exit in actions.py to return in main.pyZac Medico2021-03-282-1/+2
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * SimpleRepomanTestCase: use asyncioZac Medico2021-03-281-23/+66
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * repoman: split up repoman_mainZac Medico2021-03-281-3/+36
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * repoman: fix argv inconsistencyZac Medico2021-03-282-3/+3
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * BuildIdProfileFormatTestCase: add package.unmaskZac Medico2021-03-281-0/+1
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Add profile format extension for repo atomsFelix Bier2021-03-283-6/+18
| | | | | | | | | | | | | | | | | | | | This commit adds a profile format extension that allows to use repo atoms in profile files. Bug: https://bugs.gentoo.org/651208 Closes: https://github.com/gentoo/portage/pull/687 Signed-off-by: Felix Bier <felix.bier@rohde-schwarz.com> Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Atom: Decouple eapi and allow_repoFelix Bier2021-03-2811-35/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes the Atom constructor such that allow_repo is only overwritten with the eapi default if allow_repo is None. If allow_repo is not None, its value is preserved. There are currently two deprecated EAPIs which allowed for repo atoms ("4-python" and "5-progress"). The current consensus seems to be that repo atoms are not wanted in other eapis, and should instead be implemented via a profile format extension [1]. As a prerequisite, the allow_repo parameter has to be decoupled from the eapi parameter as done by this commit, since otherwise if an eapi other than "4-python" and "5-progress" is passed, this would force allow_repo to be False. This would prevent implementing a profile format extension that passes allow_repo=True. A helper function allow_profile_repo_deps has been added to initialize allow_repo based on the eapi of a repo before calling the Atom constructor. This helper function can be extended later to also take a profile format extension into account. All calls to the Atom constructor that pass both allow_repo and eapi have been adapted to use this helper function, with the following exceptions: update.py, vartree.py, bintree.py call isvalidatom to validate the rhs of a "move" command in profile/update [2]. Before this commit, when using eapi "4-python" or "5-progress", this check permitted the rhs to be a repo atom. However, this use case seems to be unsupported even for those eapis: The code substitutes the lhs with the rhs in the target atom, so if the target atom contains further modifiers such as slots or use flags, the the substitution would place the ::repo before these modifiers, resulting in an invalid atom that is rejected by other parts of the code. For this reason, these calls have not been adapted. [1]: https://bugs.gentoo.org/651208 [2]: https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-360004.4.4 Signed-off-by: Felix Bier <felix.bier@rohde-schwarz.com> Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * emerge: add -W option short for --deselectGreg Kubaryk2021-03-273-2/+4
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * ResolverPlayground: enable package.use.{force,mask}Zac Medico2021-03-271-2/+8
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * _get_eapi_attrs: cache eapi_* function calls via decoratorZac Medico2021-03-271-26/+81
| | | | | | | | | | | | | | Decorate eapi_* functions so that calls use _get_eapi_attrs(eapi) to cache results. Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * _test_lock_fn: remove temp file (bug 775239)Zac Medico2021-03-111-0/+4
| | | | | | | | | | Bug: https://bugs.gentoo.org/775239 Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Use atomic_ofstream as Context Manager i.e., with-statement contextsFlorian Schmaus2021-03-113-12/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | With [1: e93e6d65fa1c] atomic_ofstream became a Context Manager. This commit transforms three further call sites of atomic_ofstream() to use with-statement contexts for easier readability and increased robustness against resource leaks. 1: e93e6d65fa1ca75f676a227f7918f8b6d747425c Make atomic_ofstream a Context Manager Signed-off-by: Florian Schmaus <flo@geekplace.eu> Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * setup.py: fix GLOBAL_CONFIG_PATH double prefixZac Medico2021-03-091-3/+6
| | | | | | | | | | | | Bug: https://bugs.gentoo.org/775053 Reported-by: Marien Zwart <marien.zwart@gmail.com> Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Updates for portage-3.0.17 releaseportage-3.0.17Zac Medico2021-03-072-1/+6
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * setup.py: prefix paths in repos.conf and make.globals for pip venv installZac Medico2021-03-071-0/+4
| | | | | | | | | | | | | | | | | | | | Prefix paths in repos.conf and make.globals for pip venv install so that that default paths will all be located inside the venv. The EPREFIX value must be symbolic, since it cannot be known until runtime. Fixes: c495b6f67453 ("setup.py: prefix repos.conf paths for venv") Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * bin_entry_point: fix sys.argv[0] for non-python programsZac Medico2021-03-071-0/+1
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * EbuildPhase: Use async and await syntaxZac Medico2021-03-072-22/+16
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * BuildLogger: Use async and await syntaxZac Medico2021-03-071-7/+5
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * PipeLogger: Use async and await syntaxZac Medico2021-03-071-7/+5
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * _writer: Use async and await syntaxZac Medico2021-03-071-8/+5
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * _test_lock_fn: use _lock_manager and call unlockZac Medico2021-03-071-29/+30
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * dblink: add _format_contents_line methodZac Medico2021-03-071-5/+37
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * AsyncioEventLoop: remove obsolete supports_multiprocessing attributeZac Medico2021-03-071-6/+1
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Remove unused _PortageEventLoop and _PortageChildWatcherZac Medico2021-03-061-112/+0
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Removed unused portage.util.futures.eventsZac Medico2021-03-062-209/+3
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Remove unused _EventLoopFuture classZac Medico2021-03-061-155/+1
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Removed unused portage.util.futures.transportsZac Medico2021-03-062-577/+2
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Removed unused portage.util.futures._asyncio.tasksZac Medico2021-03-062-123/+19
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Remove unused PollSelectAdapter and PollConstants classesZac Medico2021-03-062-91/+0
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * bin_entry_point: handle versioned python shebangsZac Medico2021-03-061-1/+1
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Remove unused EventLoop classZac Medico2021-03-061-1153/+0
| | | | | | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Remove unit tests for deprecated EAPI-progressZac Medico2021-03-062-196/+0
| | | | | | | | | | Fixes: 67cf9c2b0504 ("Mark EAPIs 4-python and 5-progress as deprecated") Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Mark EAPIs "4-python" and "5-progress" as deprecatedMatt Turner2021-03-061-4/+4
| | | | | | | | | | Signed-off-by: Matt Turner <mattst88@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * Use asyncio.subprocess.Process directlyMatt Turner2021-03-062-120/+4
| | | | | | | | | | | | | | | | With no need to support Python 2, we can remove our private implementation. Signed-off-by: Matt Turner <mattst88@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
| * lib: Remove outdated Python 2 commentsMatt Turner2021-03-068-32/+0
| | | | | | | | | | | | Fixes: 788c0e8bb ("Remove from __future__ import unicode_literals") Signed-off-by: Matt Turner <mattst88@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>