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)