summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libappstream-builder/asb-utils.c')
-rw-r--r--libappstream-builder/asb-utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-builder/asb-utils.c b/libappstream-builder/asb-utils.c
index 88e2dea..0e4a89a 100644
--- a/libappstream-builder/asb-utils.c
+++ b/libappstream-builder/asb-utils.c
@@ -461,6 +461,8 @@ asb_utils_write_archive_dir (const gchar *filename,
files = g_ptr_array_new_with_free_func (g_free);
if (!asb_utils_add_files_recursive (files, directory, directory, error))
return FALSE;
+ if (files->len == 0)
+ return TRUE;
/* write tar file */
return asb_utils_write_archive (filename, directory, files, error);