Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rpmlint/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def process_lint_args(argv):
# make sure rpmlintrc exists
if options.rpmlintrc and not options.rpmlintrc.exists():
print_warning(f"User specified rpmlintrc '{options.rpmlintrc}' does not exist")
exit(2)
sys.exit(2)
# validate all the rpmlfile options to be either file or folder
f_path = set()
invalid_path = False
Expand All @@ -120,7 +120,7 @@ def process_lint_args(argv):
f_path.update(p_path)

if invalid_path:
exit(2)
sys.exit(2)
# convert options to dict
options_dict = vars(options)
# use computed rpmfile
Expand Down Expand Up @@ -149,7 +149,7 @@ def _validate_conf_location(string):
if not path.exists():
print_warning(
f"File or dir with user specified configuration '{string}' does not exist")
exit(2)
sys.exit(2)

if path.is_dir():
config_paths.extend(path.glob('*.toml'))
Expand Down
Loading