[gnome-builder] flatpak: handle invalid app-id



commit 9d3889fde38b609d7012fabdbabaa8fabc7b8fe7
Author: Christian Hergert <chergert redhat com>
Date:   Sat Mar 11 14:33:18 2017 -0800

    flatpak: handle invalid app-id
    
    If we have an invalid app-id, then we can just synthesize one for now.

 plugins/flatpak/gbp-flatpak-pipeline-addin.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-pipeline-addin.c b/plugins/flatpak/gbp-flatpak-pipeline-addin.c
index 16c3146..958fd03 100644
--- a/plugins/flatpak/gbp-flatpak-pipeline-addin.c
+++ b/plugins/flatpak/gbp-flatpak-pipeline-addin.c
@@ -175,6 +175,13 @@ register_build_init_stage (GbpFlatpakPipelineAddin  *self,
   sdk = gbp_flatpak_runtime_get_sdk_name (GBP_FLATPAK_RUNTIME (runtime));
   branch = gbp_flatpak_runtime_get_branch (GBP_FLATPAK_RUNTIME (runtime));
 
+  /*
+   * If we got here by using a non-flatpak configuration, then there is a
+   * chance we don't have a valid app-id.
+   */
+  if (ide_str_empty0 (app_id))
+    app_id = "com.example.App";
+
   if (platform == NULL && sdk == NULL)
     {
       g_set_error (error,


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