Replace packages without asking

This commit is contained in:
morganamilo 2024-03-16 20:27:41 +00:00
parent 7289953332
commit 7c02a4ad2a
No known key found for this signature in database
GPG key ID: E48D0A8326DE47C5

View file

@ -452,7 +452,8 @@ void cb_question(void *ctx, alpm_question_t *question)
case ALPM_QUESTION_REPLACE_PKG: case ALPM_QUESTION_REPLACE_PKG:
{ {
alpm_question_replace_t *q = &question->replace; alpm_question_replace_t *q = &question->replace;
q->replace = yesno(_("Replace %s with %s/%s?"), q->replace = 1;
colon_printf(_("Replacing %s with %s/%s"),
alpm_pkg_get_name(q->oldpkg), alpm_pkg_get_name(q->oldpkg),
alpm_db_get_name(q->newdb), alpm_db_get_name(q->newdb),
alpm_pkg_get_name(q->newpkg)); alpm_pkg_get_name(q->newpkg));