trivial: override support for fwupd build by runtime environment variable

This commit is contained in:
Crag Wang 2021-07-11 14:34:11 +08:00 committed by Richard Hughes
parent e4aeb99296
commit e35678e07b

View File

@ -2137,6 +2137,9 @@ fu_util_show_unsupported_warn (void)
{
#ifndef SUPPORTED_BUILD
g_autofree gchar *fmt = NULL;
if (g_getenv ("FWUPD_SUPPORTED") != NULL)
return;
/* TRANSLATORS: this is a prefix on the console */
fmt = fu_util_term_format (_("WARNING:"), FU_UTIL_TERM_COLOR_YELLOW);
/* TRANSLATORS: unsupported build of the package */