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

Create progress bar in script callback if one doesn't already exist #2063

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

imciner2
Copy link

Normally, the script start callback is called after package verification has been done, so there is an active progress bar (created in the verification stage), however package verification can be disabled. If verification is disabled, then the script start callback is the first callback used (to run pre-trans scripts), and there will be no active progress bar, leading to a crash.

To handle the case of disabled verification, create a new progress bar in the script start callback for it to use in the future.

Fixes #1949

Normally, the script start callback is called after package verification
has been done, so there is an active progress bar (created in the
verification stage), however package verification can be disabled. If
verification is disabled, then the script start callback is the first
callback used (to run pre-trans scripts), and there will be no active
progress bar, leading to a crash.

To handle the case of disabled verification, create a new progress bar
in the script start callback for it to use in the future.
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.

Segfault during transaction doing dnf update
1 participant