Skip to content

Commit

Permalink
fix(pikspect): update templates for pacman questions about package co…
Browse files Browse the repository at this point in the history
…nflicts (fix translations)
  • Loading branch information
actionless committed Sep 18, 2024
1 parent 00f6846 commit f802c58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pikaur/pikspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,10 @@ def pikspect(
format_pacman_question("Do you want to remove these packages?"),
]
questions_conflict = format_pacman_question(
".* %s-.* and %s-.* are in conflict. Remove %s?", YesNo.QUESTION_YN_NO,
"%s-%s%s%s and %s-%s%s%s are in conflict. Remove %s?", YesNo.QUESTION_YN_NO,
)
questions_conflict_via_provided = format_pacman_question(
".* %s-.* and %s-.* are in conflict (%s). Remove %s?", YesNo.QUESTION_YN_NO,
"%s-%s%s%s and %s-%s%s%s are in conflict (%s). Remove %s?", YesNo.QUESTION_YN_NO,
)

def format_conflicts(conflicts: list[list[str]]) -> list[str]:
Expand All @@ -492,12 +492,12 @@ def format_conflicts(conflicts: list[list[str]]) -> list[str]:
for question in
[
questions_conflict % (
new_pkg, old_pkg, old_pkg,
f".* {new_pkg}", ".*", "", "", old_pkg, ".*", "", "", old_pkg,
)
for new_pkg, old_pkg in conflicts
] + [
questions_conflict_via_provided % (
new_pkg, old_pkg, ".*", old_pkg,
f".* {new_pkg}", ".*", "", "", old_pkg, ".*", "", "", ".*", old_pkg,
)
for new_pkg, old_pkg in conflicts
]
Expand Down

0 comments on commit f802c58

Please sign in to comment.