mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-03 18:16:17 +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
|
self.imported[file] = 1
|
||||||
|
|
||||||
def check(self, pkg):
|
def check(self, pkg):
|
||||||
|
# avoid errors on non rpm
|
||||||
|
if pkg[-4:] != '.rpm': return
|
||||||
fd = os.open(pkg, os.O_RDONLY)
|
fd = os.open(pkg, os.O_RDONLY)
|
||||||
hdr = self.ts.hdrFromFdno(fd)
|
hdr = self.ts.hdrFromFdno(fd)
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
|
Loading…
Reference in New Issue
Block a user