"Append this prefix before location_href in output repodata", "PREFIX" },
{ "repomd-checksum", 0, 0, G_OPTION_ARG_STRING, &(_cmd_options.repomd_checksum),
"Checksum type to be used in repomd.xml", "CHECKSUM_TYPE"},
+ { "error-exit-val", 0, 0, G_OPTION_ARG_NONE, &(_cmd_options.error_exit_val),
+ "Exit with retval 2 if there were any errors during processing", NULL },
{ NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL },
};
gchar *location_prefix; /*!< Append this prefix into location_href
during repodata generation. */
gchar *repomd_checksum; /*!< Checksum type for entries in repomd.xml */
+ gboolean error_exit_val; /*!< exit 2 on processing errors */
/* Items filled by check_arguments() */
g_thread_pool_free(pool, FALSE, TRUE);
// if there were any errors, exit nonzero
- if( user_data.had_errors ) {
- exit_val = EXIT_FAILURE;
+ if( cmd_options->error_exit_val && user_data.had_errors ) {
+ exit_val = 2;
}
g_message("Pool finished%s", (user_data.had_errors ? " with errors" : ""));