From 7c6653e8312e69faac5e6fad0d07db83bf6656e2 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 22 Feb 2012 11:48:58 +0100 Subject: [PATCH] avoid errors when checking rpm signkeys on files that are not rpm --- osc/checker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osc/checker.py b/osc/checker.py index 88eb7cc8..6ddf8d74 100644 --- a/osc/checker.py +++ b/osc/checker.py @@ -87,6 +87,8 @@ class Checker: self.imported[file] = 1 def check(self, pkg): + # avoid errors on non rpm + if pkg[-4:] != '.rpm': return fd = os.open(pkg, os.O_RDONLY) hdr = self.ts.hdrFromFdno(fd) os.close(fd)