yifengyou / rpms / yum

Forked from rpms/yum 3 years ago
Clone

Blame SOURCES/BZ-1052994-yum-cron-install-unsigned-packages.patch

5e9bef
From: Zdenek Pavlas <zpavlas@redhat.com>
5e9bef
Date: Tue, 14 Jan 2014 14:41:45 +0000 (+0100)
5e9bef
Subject: yum-cron: fail when sigCheckPkg() returns 2. BZ 1052440
5e9bef
X-Git-Url: http://yum.baseurl.org/gitweb?p=yum.git;a=commitdiff_plain;h=9df69e579496ccb6df5c3f5b5b7bab8d648b06b4
5e9bef
5e9bef
yum-cron: fail when sigCheckPkg() returns 2. BZ 1052440
5e9bef
---
5e9bef
5e9bef
diff --git a/yum-cron/yum-cron.py b/yum-cron/yum-cron.py
5e9bef
index 386a7a0..87b3e69 100755
5e9bef
--- a/yum-cron/yum-cron.py
5e9bef
+++ b/yum-cron/yum-cron.py
5e9bef
@@ -547,6 +547,9 @@ class YumCronBase(yum.YumBase, YumOutput):
5e9bef
                 except yum.Errors.YumBaseError, errmsg:
5e9bef
                     self.emitUpdateFailed([str(errmsg)])
5e9bef
                     return False
5e9bef
+            else:
5e9bef
+                self.emitUpdateFailed(err)
5e9bef
+                return False
5e9bef
 
5e9bef
         del self.ts
5e9bef
         self.initActionTs() # make a new, blank ts to populate