diff options
| -rw-r--r-- | UpdateManager/DistUpgradeFetcher.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/UpdateManager/DistUpgradeFetcher.py b/UpdateManager/DistUpgradeFetcher.py index c6b83994..794566c2 100644 --- a/UpdateManager/DistUpgradeFetcher.py +++ b/UpdateManager/DistUpgradeFetcher.py @@ -114,7 +114,11 @@ class DistUpgradeFetcher(object): proc = gpg.run(['--verify', signature, file], create_fhs=['status','logger','stderr']) gpgres = proc.handles['status'].read() - proc.wait() + try: + proc.wait() + except IOError: + # gnupg returned a problem (non-zero exit) + return False if "VALIDSIG" in gpgres: return True return False |
