From 0a65b9870e389b723faf8682f76b0feb866d10b2 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Thu, 18 Nov 2010 13:47:01 -0800 Subject: [PATCH] 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 --- osc/commandline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 0fd14b78..2683ae76 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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 = ''