diff options
author | Dan HorĂ¡k <dan@danny.cz> | 2019-06-12 12:32:12 +0200 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2019-07-06 12:07:01 +0100 |
commit | d078ad72a86fe05c204b9abc3f27dae9a811d4fc (patch) | |
tree | fa68ca0a24a6161aef81d62f43f7d33076338ddf /contrib | |
parent | 360a059597786ea62bde64d22953714be0e507bd (diff) |
support non-x86 arches in gstreamer helper
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gstreamer-plugin/pk-gstreamer-install.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/gstreamer-plugin/pk-gstreamer-install.c b/contrib/gstreamer-plugin/pk-gstreamer-install.c index 3a4b65536..f48ffebeb 100644 --- a/contrib/gstreamer-plugin/pk-gstreamer-install.c +++ b/contrib/gstreamer-plugin/pk-gstreamer-install.c @@ -232,7 +232,14 @@ pk_gst_get_arch_suffix (void) goto out; } - g_warning ("PackageKit: did not recognise machine type: '%s'", buf.machine); + /* fall back */ + if (sizeof (void *) == 8) { + suffix = "()(64bit)"; + g_debug ("PackageKit: assume 64-bit suffix for machine type: '%s'", buf.machine); + } else { + g_debug ("PackageKit: assume no suffix for machine type: '%s'", buf.machine); + } + out: return suffix; } |