summaryrefslogtreecommitdiff
path: root/builder
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-01-12 14:25:41 +0100
committerAlexander Larsson <alexl@redhat.com>2016-01-12 14:25:41 +0100
commit55e934ee7613c38853b334164ab3f49a9110ef1d (patch)
treeeecfbca6e56510c1f24efed78f91dd3c268bb3c9 /builder
parent4c47951cbde18ab78f5a933f3ed8d160b9a75ca5 (diff)
downloadxdg-app-55e934ee7613c38853b334164ab3f49a9110ef1d.tar.gz
builder: Fix handling of builddir
Diffstat (limited to 'builder')
-rw-r--r--builder/builder-module.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/builder/builder-module.c b/builder/builder-module.c
index c35c53b..73998ec 100644
--- a/builder/builder-module.c
+++ b/builder/builder-module.c
@@ -845,7 +845,10 @@ builder_module_build (BuilderModule *self,
if (use_builddir)
{
- build_dir_relative = g_build_filename (source_subdir_relative, "_xdg_app_build", NULL);
+ if (source_subdir_relative)
+ build_dir_relative = g_build_filename (source_subdir_relative, "_xdg_app_build", NULL);
+ else
+ build_dir_relative = g_strdup ("_xdg_app_build");
build_dir = g_file_get_child (source_subdir, "_xdg_app_build");
if (!g_file_make_directory (build_dir, NULL, error))