[gnome-builder] flatpak: include non-default arch in transfer title



commit 4d501e2222ed86aeb6fef238508298f3c3bee27b
Author: Christian Hergert <chergert redhat com>
Date:   Wed Mar 7 13:54:06 2018 -0800

    flatpak: include non-default arch in transfer title

 src/plugins/flatpak/gbp-flatpak-transfer.c | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-transfer.c b/src/plugins/flatpak/gbp-flatpak-transfer.c
index 4c54abd16..07741c928 100644
--- a/src/plugins/flatpak/gbp-flatpak-transfer.c
+++ b/src/plugins/flatpak/gbp-flatpak-transfer.c
@@ -55,28 +55,32 @@ static void
 gbp_flatpak_transfer_update_title (GbpFlatpakTransfer *self)
 {
   g_autofree gchar *title = NULL;
+  const gchar *arch = "";
 
   g_return_if_fail (GBP_IS_FLATPAK_TRANSFER (self));
 
+  if (self->arch != NULL && g_strcmp0 (self->arch, flatpak_get_default_arch ()) != 0)
+    arch = self->arch;
+
   if (!self->failed)
     {
       if (self->has_runtime)
         {
           if (self->finished)
-            /* Translators: %s %s is used for replacing the runtime id (org.gnome.Platform) and the branch 
(3.24, master, etc) */
-            title = g_strdup_printf (_("Updated %s %s"), self->id, self->branch ?: "");
+            /* Translators: %s %s is used for replacing the runtime id (org.gnome.Platform) and the arch and 
the branch (3.24, master, etc) */
+            title = g_strdup_printf (_("Updated %s %s %s"), self->id, arch, self->branch ?: "");
           else
-            /* Translators: %s %s is used for replacing the runtime id (org.gnome.Platform) and the branch 
(3.24, master, etc) */
-            title = g_strdup_printf (_("Updating %s %s"), self->id, self->branch ?: "");
+            /* Translators: %s %s is used for replacing the runtime id (org.gnome.Platform) and the arch and 
the branch (3.24, master, etc) */
+            title = g_strdup_printf (_("Updating %s %s %s"), self->id, arch, self->branch ?: "");
         }
       else
         {
           if (self->finished)
-            /* Translators: %s %s is used for replacing the runtime id (org.gnome.Platform) and the branch 
(3.24, master, etc) */
-            title = g_strdup_printf (_("Installed %s %s"), self->id, self->branch ?: "");
+            /* Translators: %s %s is used for replacing the runtime id (org.gnome.Platform) and the arch and 
the branch (3.24, master, etc) */
+            title = g_strdup_printf (_("Installed %s %s %s"), self->id, arch, self->branch ?: "");
           else
-            /* Translators: %s %s is used for replacing the runtime id (org.gnome.Platform) and the branch 
(3.24, master, etc) */
-            title = g_strdup_printf (_("Installing %s %s"), self->id, self->branch ?: "");
+            /* Translators: %s %s is used for replacing the runtime id (org.gnome.Platform) and the arch and 
the branch (3.24, master, etc) */
+            title = g_strdup_printf (_("Installing %s %s %s"), self->id, arch, self->branch ?: "");
         }
     }
 


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