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

Move Repository to context manager #2477

Merged
merged 2 commits into from
Feb 24, 2024
Merged

Conversation

schaefi
Copy link
Collaborator

@schaefi schaefi commented Feb 22, 2024

Change the Repository Factory to be a context manager. All code using Repository was updated to the following with statement:

with Repository(...).new as repo:
    repo.some_member()

This is related to Issue #2412

Change the Repository Factory to be a context manager.
All code using Repository was updated to the following
with statement:

    with Repository(...).new as repo:
        repo.some_member()

This is related to Issue #2412
@schaefi schaefi requested a review from dcermak February 22, 2024 15:19
@schaefi schaefi self-assigned this Feb 22, 2024
Copy link
Collaborator

@dcermak dcermak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one question about a related issue

kiwi/system/prepare.py Show resolved Hide resolved
The PackageManager argument is allowed to be optional
@Conan-Kudo Conan-Kudo merged commit 6dc4ef2 into main Feb 24, 2024
15 checks passed
@Conan-Kudo Conan-Kudo deleted the repository_to_context_manager branch February 24, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants