Skip to content

Commit c3b438a

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 0a370ea commit c3b438a

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
@@ -97,12 +97,6 @@ def process_lint_args(argv):
9797

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

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

0 commit comments

Comments
 (0)