1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

avoid errors when checking rpm signkeys on files that are not rpm

This commit is contained in:
Stephan Kulow 2012-02-22 11:48:58 +01:00
parent b1502a5715
commit 7c6653e831

View File

@ -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)