From bff3dabaf45abbc7d6bed1b3ec1c717ae678c8b4 Mon Sep 17 00:00:00 2001 From: Rémy Oudompheng Date: Sat, 4 Dec 2010 18:37:17 +0100 Subject: Only emit a warning when a repository does not exist. Signed-off-by: Pierre Schmitz --- cron-jobs/check_archlinux/check_packages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron-jobs/check_archlinux/check_packages.py b/cron-jobs/check_archlinux/check_packages.py index 86494b7..bdbbeed 100755 --- a/cron-jobs/check_archlinux/check_packages.py +++ b/cron-jobs/check_archlinux/check_packages.py @@ -403,8 +403,8 @@ for absroot in absroots: for repo in repos: repopath = absroot + "/" + repo if not os.path.isdir(repopath): - print "Error : the repository " + repo + " does not exist in " + absroot - sys.exit() + print("Warning : the repository " + repo + " does not exist in " + absroot) + if not os.path.isdir(repodir): print "Error: the repository directory %s does not exist" % repodir sys.exit() -- cgit v1.2.3-24-g4f1b