mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 01:46:13 +01:00
checker.py: "More than one statement on a single line"
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
6a6b25f9cb
commit
a5d14bfd48
@ -90,7 +90,8 @@ class Checker:
|
||||
|
||||
def check(self, pkg):
|
||||
# avoid errors on non rpm
|
||||
if pkg[-4:] != '.rpm': return
|
||||
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