Skip to content

Fix empty error window#230

Closed
norby4ever wants to merge 1 commit intomanatools:mainfrom
norby4ever:fix-empty-error-window
Closed

Fix empty error window#230
norby4ever wants to merge 1 commit intomanatools:mainfrom
norby4ever:fix-empty-error-window

Conversation

@norby4ever
Copy link
Copy Markdown
Contributor

When installing the package that is already installed, error window has no text. This patch fixes the problem.

Comment thread dnfdragora/ui.py
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me. BTW are you testing this functionality in master using dnf5daemon?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have dnf 4.14.0 on my distro. I think if anyway there's no error with dnf 5, this text won't be shown.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@anaselli I suggest to change the text:

err = _('The list of packages cannot be installed:') + '\n' + '\n'.join(self.options['install'] + '\nMaybe some of them are already installed.')
We couldn't find this error in other cases rather than this. An empty error window appeared only when there were packages had been installed beforehand. Maybe it can help users.

Comment thread dnfdragora/ui.py
else:
err = "".join(resolve) if isinstance(resolve, list) else resolve if isinstance(resolve, list) else repr(resolve);
if not err:
err = _('The list of packages cannot be installed:') + '\n' + '\n'.join(self.options['install'])
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe "The list of packages that cannot be installed"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

В этой фразе "the" переводится как "этот" или "данный". Всё правильно.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

У тебя пропущено слово "которые" ("that" или, может, лучше "which", надо подумать)

@anaselli
Copy link
Copy Markdown
Collaborator

anaselli commented Apr 6, 2026

This string shouldn't be needed any more in dnfdragora for main, a transaction dialog shows the transaction information to the user now.

@anaselli anaselli closed this Apr 6, 2026
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