From e35678e07bcbcc4a2632dfabd4e5af16caf23f46 Mon Sep 17 00:00:00 2001 From: Crag Wang Date: Sun, 11 Jul 2021 14:34:11 +0800 Subject: [PATCH] trivial: override support for fwupd build by runtime environment variable --- src/fu-util-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fu-util-common.c b/src/fu-util-common.c index a30dca37d..cd720b24f 100644 --- a/src/fu-util-common.c +++ b/src/fu-util-common.c @@ -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 */