From: Tomas Mlcoch Date: Thu, 21 May 2015 13:16:12 +0000 (+0200) Subject: mergerepo: Exit with error code when a groupfile cannot be copied X-Git-Tag: upstream/0.10.0~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a9e7311d0c31082f4f2436b7b70cdac28d91c56;p=services%2Fcreaterepo_c.git mergerepo: Exit with error code when a groupfile cannot be copied --- diff --git a/src/mergerepo_c.c b/src/mergerepo_c.c index 0c028e6..e1e6b31 100644 --- a/src/mergerepo_c.c +++ b/src/mergerepo_c.c @@ -1683,8 +1683,10 @@ main(int argc, char **argv) cr_get_filename(cmd_options->groupfile), NULL); g_debug("Using user specified groupfile: %s", groupfile); - } else - g_warning("Cannot copy groupfile %s", cmd_options->groupfile); + } else { + g_critical("Cannot copy groupfile %s", cmd_options->groupfile); + return 1; + } } // Load noarch repo