[recipes] Exporter: Allow exporting recipes without chef



commit 65e9025a75a6a5e525fe9eae56b0ef776317a8a6
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Dec 14 15:10:25 2016 -0500

    Exporter: Allow exporting recipes without chef
    
    No reason not to allow this, really.

 src/gr-recipe-exporter.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/gr-recipe-exporter.c b/src/gr-recipe-exporter.c
index 84c8434..aa6b2a3 100644
--- a/src/gr-recipe-exporter.c
+++ b/src/gr-recipe-exporter.c
@@ -278,10 +278,8 @@ prepare_export (GrRecipeExporter  *exporter,
 
         store = gr_app_get_recipe_store (GR_APP (g_application_get_default ()));
         chef = gr_recipe_store_get_chef (store, author);
-        if (!chef) {
-                g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, _("Chef %s not found"), author);
-                return FALSE;
-        }
+        if (!chef)
+                return TRUE;
 
         g_clear_pointer (&path, g_free);
         g_clear_pointer (&keyfile, g_key_file_unref);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]