From a5d14bfd4868fd5c3c5ae3586d834f1a4c6b3ffe Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Mon, 27 May 2013 14:58:58 +0200 Subject: [PATCH] checker.py: "More than one statement on a single line" Signed-off-by: Danny Al-Gaaf --- osc/checker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osc/checker.py b/osc/checker.py index 80ac4cf9..1c4b79cd 100644 --- a/osc/checker.py +++ b/osc/checker.py @@ -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)