diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/core.h | 2 | ||||
| -rw-r--r-- | include/delivery.h | 3 | 
2 files changed, 4 insertions, 1 deletions
| diff --git a/include/core.h b/include/core.h index b0a1a11..b8b047f 100644 --- a/include/core.h +++ b/include/core.h @@ -12,7 +12,7 @@  #include <sys/statvfs.h>  #define SYSERROR(MSG, ...) do { \ -    fprintf(stderr, "%s:%s:%d:%s - ", path_basename(__FILE__), __FUNCTION__, __LINE__, strerror(errno) ? "info" : strerror(errno)); \ +    fprintf(stderr, "%s:%s:%d:%s - ", path_basename(__FILE__), __FUNCTION__, __LINE__, (errno > 0) ? strerror(errno) : "info"); \      fprintf(stderr, MSG LINE_SEP, __VA_ARGS__); \  } while (0)  #define STASIS_BUFSIZ 8192 diff --git a/include/delivery.h b/include/delivery.h index 345cd13..2ab25d1 100644 --- a/include/delivery.h +++ b/include/delivery.h @@ -277,6 +277,8 @@ char *delivery_get_release_header(struct Delivery *ctx);   * Finalizes a delivery artifact for distribution   * @param ctx poitner to Delivery context   * @param filename path to delivery artifact (Conda YAML file) + * @param stage DELIVERY_REWRITE_SPEC_STAGE_1 - Replacements for build + * @param stage DELIVERY_REWRITE_SPEC_STAGE_2 - Replacements for export   */  void delivery_rewrite_spec(struct Delivery *ctx, char *filename, unsigned stage); @@ -298,6 +300,7 @@ int delivery_copy_conda_artifacts(struct Delivery *ctx);  /**   * Retrieve Conda installer + * @param ctx pointer to Delivery context   * @param installer_url URL to installation script   */  int delivery_get_conda_installer(struct Delivery *ctx, char *installer_url); | 
