[pacman-dev] [PATCH] Adds a "retry?" prompt for when transaction creation fails for user-friendlier fail support.
Erich Eckner
arch at eckner.net
Wed Apr 29 07:32:16 UTC 2020
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Wed, 29 Apr 2020, Allan McRae wrote:
> On 28/4/20 9:43 am, Pedro wrote:
>> EDIT: Rewrote the prompt message and added a check for the --noconfirm flag
>>
>>> From what I could see, the function trans_init that comes right before the prompt has already specific messages
>> for each operation, so I consider that this new implementation fits the purpose.
>> My motivation to submit this patch is that it's pretty common for AUR-helpers to automatically invoke pacman after a build,
>> but correct transaction error handling is quite rare. So I thought that to implement a handling mechanism in the user side
>> would solve the problem not only in that case, but also for other scripts that invoke pacman.
>>
>> Signed-off-by: Pedro <pedrocga1 at gmail.com>
>> ---
>
> I don't see how retrying the same operation with the same input is going
> to help anyone. If pacman fails in these ways, it is not going to
> succeed the next attempt.
I repeatedly get download errors due to slow initial speed or whatnot
(updating 20+ clients simultanously seems to overload my local mirrors
somehow) - a "retry" option would indeed make a difference there.
However, I think, such a functionality should be provided by whoever calls
pacman.
regards,
Erich
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEE3p92iMrPBP64GmxZCu7JB1Xae1oFAl6pLYEACgkQCu7JB1Xa
e1rMyBAAsyaighGgMenA3CMaJQftB2SQ6BYb1r4OgDZCAx97mpyAD/6JwWrskp5k
d5i2RwGV0d98DS+7khFOchpnOE4gYjW3uaIXUtSoL6MOU9OReehVcn9Fy/O2rZjc
hD/UUnH28HLx2ao7pg5MOuY2mxqW0X0REYScXHwcr7yVQM6DzkNEoRwqD5B9OPeY
xPZAFPcIOiJ9kSDQtGoTbm16RLydpJrf8eS67hThHeav+SUs8pWIkFdqWKkYkg6b
TZbrIvnUVFFFnov4rEe62tJ72xRAtkP4yp8dcIEbetguqc2i4liIlJCJv8yWllIo
RWgHyHUBll4WMLowCBzfFBl6fQ+k5Frd4TdHP6e3h6nFvVjrlAlgZfzgo0S7XQVF
KPFtHchcvvsFbaZt4/B2vCPZ/caGYfximXL/212oobAWyDwIdXmWLIeSE0sVQ/a6
HwHUs4WEC5MdPyoHAJCeW8zo8dg4S97NXOycJ2IlRw5fww1X/L7LbLGoiz9H99jk
PGUWa7NEfg5v2tWkjSPiUAFCAf9mSKtG2p8F3WKMguSUWDT8Kv8pPyeKjNRRjWN+
cUAI8H/tWw9n2REWlwbIDlPSvrCepWvVhYONHSdkq3rjdkvqwzvwviRgRn0fB0nc
yYub93IPGLIcwdBQlIXQz9G6paZuqJAzNgDH68H2draQvgCcTQY=
=2IVH
-----END PGP SIGNATURE-----
More information about the pacman-dev
mailing list