summaryrefslogtreecommitdiff
path: root/builder/builder-context.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-01-18 15:22:56 +0100
committerAlexander Larsson <alexl@redhat.com>2016-01-18 15:22:56 +0100
commite91a4c79e05297c9754c8e022ec94f717512f59a (patch)
treef6268565dee218ba60e14edc6b8d3e0c2410d463 /builder/builder-context.c
parent3341fb08adc981879043445e8c40883786705738 (diff)
downloadxdg-app-e91a4c79e05297c9754c8e022ec94f717512f59a.tar.gz
Builder: Support commiting a platform
Diffstat (limited to 'builder/builder-context.c')
-rw-r--r--builder/builder-context.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/builder/builder-context.c b/builder/builder-context.c
index fab1781..9c5dabb 100644
--- a/builder/builder-context.c
+++ b/builder/builder-context.c
@@ -47,6 +47,7 @@ struct BuilderContext {
BuilderOptions *options;
gboolean keep_build_dirs;
char **cleanup;
+ char **cleanup_platform;
gboolean use_ccache;
gboolean build_runtime;
};
@@ -76,6 +77,7 @@ builder_context_finalize (GObject *object)
g_clear_object (&self->options);
g_free (self->arch);
g_strfreev (self->cleanup);
+ g_strfreev (self->cleanup_platform);
G_OBJECT_CLASS (builder_context_parent_class)->finalize (object);
}
@@ -288,6 +290,20 @@ builder_context_get_global_cleanup (BuilderContext *self)
return (const char **)self->cleanup;
}
+void
+builder_context_set_global_cleanup_platform (BuilderContext *self,
+ const char **cleanup)
+{
+ g_strfreev (self->cleanup_platform);
+ self->cleanup_platform = g_strdupv ((char **)cleanup);
+}
+
+const char **
+builder_context_get_global_cleanup_platform (BuilderContext *self)
+{
+ return (const char **)self->cleanup_platform;
+}
+
gboolean
builder_context_get_keep_build_dirs (BuilderContext *self)
{