#600 'lint' can run with different 'rpmlint' versions
Merged by onosek. Opened by onosek.
onosek/rpkg lint_version  into  master

Download 600.patch

'lint' subcommand internally executes 'rpmlint' binary. With 'rpmlint' package version 2.x it changed some of its input arguments. Rpkg has to recognize the installed 'rpmlint' version and use the corresponding switch/argument. Specifically, '-f' switch for user config file has changed to '-r' in the newer version.
Additionally, fixes some paths to source RPMs.

JIRA: RHELCMP-7842
Resolves: rhbz#1967821

Signed-off-by: Ondrej Nosek onosek@redhat.com

rebased onto f0d95d61ffe245593abb022ab10734213a38e6db

Rebased and modified to support previously merged https://pagure.io/rpkg/pull-request/589

rebased onto 07a4cd3d17e86bc463d778e96590561e431cfe2c

rebased onto b9fff7d0a29908a5f18c427b011f607de450de72

Looks OK for me.

I see only one stylistic issue.
https://pagure.io/fork/onosek/rpkg/blob/083376330b54f5528dd228c7b0207ee2944cecf4/f/pyrpkg/init.py#_2652

if (os.path.exists(mockdir)):

there are redundant parentheses around the condition.

rebased onto 679343353a271f69d9f37629cbeb7cb6bcb96fc7

Pull-Request has been merged by onosek

Metadata