Commit 7ead642b authored by André Anjos's avatar André Anjos 💬

[build] Fix base_build() logs

parent 85ce33df
Pipeline #40142 failed with stage
in 1 minute and 29 seconds
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment