diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2018-06-27 11:31:21 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2018-06-27 15:09:45 +0200 |
commit | 1d53cffad22c92645090e0e6ddde31fe4f7c3b05 (patch) | |
tree | c945300df9e0360c00318b12f40fbac122e2ad1b /apt-private/private-cmndline.h | |
parent | 8c3cb66e65cddf1ac297daba5bb442b415577137 (diff) |
Handle JSON hooks that just close the file/exit and fix some other errors
JSON hooks might disappear and the common idiom to work around hooks
disappearing is to check for the hook in the shell snippet that is
in the apt.conf file and if it does not exist, do nothing. This caused
APT to fail however, expecting it to acknowledge the handshake.
Ignoring ECONNRESET on handshakes solves the problem.
The error case, and the other error cases also did not stop execution
of the hook, causing more errors to pile up. Fix this by directly going
to the closing part of the code.
LP: #1776218
Diffstat (limited to 'apt-private/private-cmndline.h')
0 files changed, 0 insertions, 0 deletions