mergerepo: Exit with error code when a groupfile cannot be copied
authorTomas Mlcoch <tmlcoch@redhat.com>
Thu, 21 May 2015 13:16:12 +0000 (15:16 +0200)
committerTomas Mlcoch <tmlcoch@redhat.com>
Thu, 21 May 2015 13:16:12 +0000 (15:16 +0200)
src/mergerepo_c.c

index 0c028e6..e1e6b31 100644 (file)
@@ -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