Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SchedulerInterface/PollScheduler: Add _loop property #1278

Merged

Commits on Feb 24, 2024

  1. SchedulerInterface/PollScheduler: Add _loop property

    This allows async_aux_get to easily verify the identity of
    the underlying loop so that this assertion will not fail:
    
    _start_with_metadata
        (settings.configdict["pkg"]["SRC_URI"],) = aux_get_task.future.result()
                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.11/site-packages/portage/dbapi/porttree.py", line 786, in async_aux_get
        raise AssertionError(
    AssertionError: async_aux_get called from thread <_MainThread(MainThread, started 281473559502880)> with loop <_emerge.Scheduler.Scheduler._iface_class object at 0xffff8e3a8840>
    Terminated
    
    Fixes: 389bb30 ("async_aux_get: Use EbuildMetadataPhase deallocate_config future")
    Bug: https://bugs.gentoo.org/925333
    Signed-off-by: Zac Medico <zmedico@gentoo.org>
    zmedico committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    acb69a6 View commit details
    Browse the repository at this point in the history
  2. _dynamic_deps_preload: Fix settings reference

    Use the settings reference from the config pool as
    intended to prevent a KeyError similar to bug 924319
    but triggered by emerge --dynamic-deps.
    
    Fixes: f9ea958 ("MetadataRegen: Use EbuildMetadataPhase deallocate_config")
    Bug: https://bugs.gentoo.org/925350
    Signed-off-by: Zac Medico <zmedico@gentoo.org>
    zmedico committed Feb 24, 2024
    Configuration menu
    Copy the full SHA
    d06515e View commit details
    Browse the repository at this point in the history