mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-24 00:56:15 +01:00
commandline: improve ENOTDIR error message for validators
WARNING: source_validator_directory configured but it does not exist: /usr/lib/osc/source_validators Install osc-source_validator to fix. Signed-off-by: Brandon Philips <bphilips@suse.de>
This commit is contained in:
parent
775677d878
commit
0a65b9870e
@ -3032,7 +3032,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
if opts.skip_validation:
|
||||
validators = None
|
||||
elif not os.path.exists(validators):
|
||||
print "WARNING: validator directory", validators, "configured, but not existing (please install osc-source_validator). Skipping ..."
|
||||
print "WARNING: source_validator_directory configured but it "\
|
||||
"does not exist:\n\t %s \n"\
|
||||
"\t Install osc-source_validator to fix." % validators
|
||||
validators = None
|
||||
|
||||
msg = ''
|
||||
|
Loading…
Reference in New Issue
Block a user