Skip to content

Commit 9c2f6db

Browse files
committed
cli: Remove double check of rpmlintrc file
Remove the check of file existence for options.rpmlintrc, this is not needed anymore, it's done by argparse with the "type=_is_file_path", that checks that's the file exists and it's a regular file.
1 parent 36f2314 commit 9c2f6db

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

rpmlint/cli.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,6 @@ def process_lint_args(argv):
9696

9797
options = parser.parse_args(args=argv)
9898

99-
# make sure rpmlintrc exists
100-
if options.rpmlintrc and not all([rpmlintrc.exists()
101-
for rpmlintrc
102-
in options.rpmlintrc]):
103-
print_warning(f"Not all user specified rpmlintrc '{options.rpmlintrc}' exist")
104-
sys.exit(2)
10599
# validate all the rpmfile options to be either file or folder
106100
f_path = set()
107101
invalid_path = False

0 commit comments

Comments
 (0)