diff options
author | Richard Hughes <richard@hughsie.com> | 2019-02-06 13:00:03 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2019-02-06 13:00:03 +0000 |
commit | 255eef9c11b0fb855c02f4e0d5ef3edad6efb3c7 (patch) | |
tree | 4821e31fa9731f63b9720f97829e296d9d4bf728 /libappstream-builder | |
parent | ef905c24f8a0944a8b77dfc64ba30c351ae55ebe (diff) | |
download | appstream-glib-255eef9c11b0fb855c02f4e0d5ef3edad6efb3c7.tar.gz |
Recognise uncompressed Arch packages
Fixes https://github.com/hughsie/appstream-glib/issues/264
Diffstat (limited to 'libappstream-builder')
-rw-r--r-- | libappstream-builder/asb-context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libappstream-builder/asb-context.c b/libappstream-builder/asb-context.c index 425f227..90daa89 100644 --- a/libappstream-builder/asb-context.c +++ b/libappstream-builder/asb-context.c @@ -459,7 +459,8 @@ asb_context_add_filename (AsbContext *ctx, const gchar *filename, GError **error pkg = asb_package_rpm_new (); #endif #ifdef HAVE_ALPM - if (g_str_has_suffix (filename, ".pkg.tar.xz")) + if (g_str_has_suffix (filename, ".pkg.tar") || + g_str_has_suffix (filename, ".pkg.tar.xz")) pkg = asb_package_alpm_new (); #endif if (g_str_has_suffix (filename, ".cab")) |