diff options
author | Richard Hughes <richard@hughsie.com> | 2017-11-13 10:31:36 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-11-13 10:31:36 +0000 |
commit | 473f3ab19f91e13014d6cefdbf57209337a6d407 (patch) | |
tree | 2d0a56bdb57a7ffe3cab5607e703e5edbbda2fa2 /libappstream-builder | |
parent | 97402f4dce6e7c0a2e803521550e095cda4f5fb5 (diff) | |
download | appstream-glib-473f3ab19f91e13014d6cefdbf57209337a6d407.tar.gz |
Do not try to extract duplicate files in the icon theme packages
Fixes an extraction issue when using OpenSUSE.
Diffstat (limited to 'libappstream-builder')
-rw-r--r-- | libappstream-builder/asb-utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libappstream-builder/asb-utils.c b/libappstream-builder/asb-utils.c index 82d94a4..f1b48e9 100644 --- a/libappstream-builder/asb-utils.c +++ b/libappstream-builder/asb-utils.c @@ -411,6 +411,11 @@ asb_utils_explode (const gchar *filename, valid = asb_utils_explode_file (entry, dir); if (!valid) continue; + if (g_file_test (archive_entry_pathname (entry), G_FILE_TEST_EXISTS)) { + g_debug ("skipping as %s already exists", + archive_entry_pathname (entry)); + continue; + } if (archive_entry_symlink (entry) == NULL) { archive_entry_set_mode (entry, S_IRGRP | S_IWGRP | S_IRUSR | S_IWUSR); |