diff --git a/src/builder-manifest.c b/src/builder-manifest.c index 96fd6103..cbf2f48b 100644 --- a/src/builder-manifest.c +++ b/src/builder-manifest.c @@ -2131,13 +2131,16 @@ static GFile * builder_manifest_find_appdata_file (BuilderManifest *self, GFile *app_root) { + /* We order these so that share/appdata/*.appdata.xml if found + first, as this is the target name, and apps may have both, which will + cause issues with the rename. */ const char *extensions[] = { - ".metainfo.xml", ".appdata.xml", + ".metainfo.xml", }; const char *dirs[] = { - "share/metainfo", "share/appdata", + "share/metainfo", }; g_autoptr(GFile) source = NULL;