Skip to content

Commit 7c6653e

Browse files
committed
avoid errors when checking rpm signkeys on files that are not rpm
1 parent b1502a5 commit 7c6653e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

osc/checker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def readkey(self, file):
8787
self.imported[file] = 1
8888

8989
def check(self, pkg):
90+
# avoid errors on non rpm
91+
if pkg[-4:] != '.rpm': return
9092
fd = os.open(pkg, os.O_RDONLY)
9193
hdr = self.ts.hdrFromFdno(fd)
9294
os.close(fd)

0 commit comments

Comments
 (0)