From 9d72c82ec43dd6362d49e077be5290c4562b7b6f Mon Sep 17 00:00:00 2001 From: 0xfadead Date: Sun, 15 Sep 2024 16:32:49 +0200 Subject: [PATCH] Add config option for `--retry-input' --- src/pacman/conf.h | 1 + src/pacman/pacman.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/pacman/conf.h b/src/pacman/conf.h index d20eac47..4063a314 100644 --- a/src/pacman/conf.h +++ b/src/pacman/conf.h @@ -59,6 +59,7 @@ typedef struct __config_t { unsigned short color; unsigned short disable_dl_timeout; unsigned short disable_sandbox; + unsigned short retry_input; char *print_format; /* unfortunately, we have to keep track of paths both here and in the library * because they can come from both the command line or config file, and we diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 4e8d9dd1..3387ea21 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -500,6 +500,9 @@ static int parsearg_global(int opt) case 'v': (config->verbose)++; break; + case OP_RETRYINPUT: + config->retry_input = 1; + break; default: return 1; }