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:
parent
b1502a5715
commit
7c6653e831
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user