1
0
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:
Danny Al-Gaaf 2013-05-27 14:58:58 +02:00
parent 6a6b25f9cb
commit a5d14bfd48

View File

@ -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)