[gnome-builder/wip/chergert/deploy] flatpak: include non-default arch in transfer title
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/deploy] flatpak: include non-default arch in transfer title
- Date: Wed, 7 Mar 2018 21:54:29 +0000 (UTC)
commit c221da8f788cbc2b902b2801c57498f70ed69f45
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]