[gnome-builder] flatpak: raise priority of build-system discovery
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: raise priority of build-system discovery
- Date: Mon, 14 Jan 2019 19:00:59 +0000 (UTC)
commit 7beccc188e5b98b2d308760d0ef6e890fbcac238
Author: Christian Hergert <chergert redhat com>
Date: Mon Jan 14 11:00:07 2019 -0800
flatpak: raise priority of build-system discovery
This should be higher than the build systems priority because the project
is explicitly telling us what it should be.
Projects opened with the file-chooser will have the plugin that provided
the file-filter pinned when opening the project. That will get saved to
the recent-info so that followup loads get the same plugin, so having a
higher priority than the build systems themselves is fine.
src/plugins/flatpak/gbp-flatpak-build-system-discovery.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-build-system-discovery.c
b/src/plugins/flatpak/gbp-flatpak-build-system-discovery.c
index c42647453..334360559 100644
--- a/src/plugins/flatpak/gbp-flatpak-build-system-discovery.c
+++ b/src/plugins/flatpak/gbp-flatpak-build-system-discovery.c
@@ -199,6 +199,10 @@ gbp_flatpak_build_system_discovery_discover (IdeBuildSystemDiscovery *discovery
else if (dzl_str_equal0 (buildsystem, "simple"))
buildsystem = "directory";
+ /* Set priority higher than normal discoveries */
+ if (priority != NULL)
+ *priority = -1000;
+
ret = g_strdup (buildsystem);
IDE_TRACE_MSG ("Discovered buildsystem of type \"%s\"", ret);
IDE_RETURN (ret);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]