diff --git a/bob/devtools/build.py b/bob/devtools/build.py index 806fc087483d75d246255a58b0fb2a68844e9418..68489b4ac0b114ca902ff1dfbfd115fdd13c53a4 100644 --- a/bob/devtools/build.py +++ b/bob/devtools/build.py @@ -633,21 +633,19 @@ def base_build( if all(urls): logger.info( - "Skipping build for %s as packages with matching " + "Skipping build(s) for recipe at '%s' as packages with matching " "characteristics exist (%s)", - path, + recipe_dir, ", ".join(urls), ) return if any(urls): - logger.error( - "One or more packages for %s already exist (%s). " - "Change the package build number to trigger a build.", - path, - ", ".join(urls), + raise RuntimeError( + "One or more packages for recipe at '%s' already exist (%s). " + "Change the package build number to trigger a build." % \ + (recipe_dir, ", ".join(urls)), ) - return # if you get to this point, just builds the package(s) logger.info("Building %s", path)