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

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