| |
@@ -64,11 +64,14 @@
|
| |
|
| |
arg: filenames, list of filenames to run rpmlint on
|
| |
"""
|
| |
+
|
| |
rpmlint_cfg = tempfile.NamedTemporaryFile(delete=False)
|
| |
rpmlint_cfg.write(b'addFilter("unknown-key")')
|
| |
rpmlint_cfg.close()
|
| |
|
| |
- cmd = "rpmlint -f " + rpmlint_cfg.name + " " + " ".join(filenames)
|
| |
+ # see: https://github.com/rpm-software-management/rpmlint/issues/794
|
| |
+ cmd = ("rpmlint --ignore-unused-rpmlintrc --rpmlintrc " +
|
| |
+ rpmlint_cfg.name + " " + " ".join(filenames))
|
| |
out = "Checking: "
|
| |
sep = "\n" + " " * len(out)
|
| |
out += sep.join([os.path.basename(f) for f in filenames])
|
| |
Fixes #425
rpmlint 2.1.0 seems to have changed some options:
--installed
is now for installed files, so tweaked thatSetting the "unknown-key" filter causes an error with rpmlint 2.1.0---I'm not sure why this is (someone with more rpmlint knowledge will have to work on that). So for the time being, I've just commented that out.