From b5f0f2e8dab48e4af3a298829cb372bac48d770d Mon Sep 17 00:00:00 2001 From: clime Date: Mar 08 2018 22:46:53 +0000 Subject: fix rpmlint config file lookup in lint method --- diff --git a/rpkglib/__init__.py b/rpkglib/__init__.py index a1cc8eb..483edd2 100644 --- a/rpkglib/__init__.py +++ b/rpkglib/__init__.py @@ -201,9 +201,9 @@ class Commands(pyrpkg.Commands): if info: cmd.extend(['-i']) if rpmlintconf: - cmd.extend(["-f", os.path.join(self.outdir, rpmlintconf)]) - elif os.path.exists(os.path.join(self.outdir, ".rpmlint")): - cmd.extend(["-f", os.path.join(self.outdir, ".rpmlint")]) + cmd.extend(["-f", os.path.join(self.path, rpmlintconf)]) + elif os.path.exists(os.path.join(self.path, ".rpmlint")): + cmd.extend(["-f", os.path.join(self.path, ".rpmlint")]) cmd.append(os.path.join(self.outdir, self.spec)) if os.path.exists(os.path.join(self.outdir, srpm)): cmd.append(os.path.join(self.outdir, srpm))