]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Also scan "/usr/share/metainfo" for appdata.
authorAtri Bhattacharya <badshah400@gmail.com>
Wed, 20 Jul 2016 18:02:35 +0000 (20:02 +0200)
committerAtri Bhattacharya <badshah400@gmail.com>
Wed, 20 Jul 2016 18:02:35 +0000 (20:02 +0200)
Recent iterations of the appstream specification recommend
installing the appstream files in /usr/share/metainfo rather
than /usr/share/appdata. For  apps which may continue
to install their appstream files according to the legacy
standards, also keep /usr/share/appdata in the list of dirs
to scan.

tools/rpmdb2solv.c

index 3b1d41bda504ff4caa5b2f9525baf00645c345f4..7824fba7b73beb13f1fae84ae5ce3cef4cdb3397 100644 (file)
@@ -208,6 +208,7 @@ main(int argc, char **argv)
 #ifdef ENABLE_APPDATA
   if (add_appdata)
     repo_add_appdata_dir(repo, "/usr/share/appdata", REPO_USE_ROOTDIR | REPO_REUSE_REPODATA | REPO_NO_INTERNALIZE | APPDATA_SEARCH_UNINTERNALIZED_FILELIST);
+    repo_add_appdata_dir(repo, "/usr/share/metainfo", REPO_USE_ROOTDIR | REPO_REUSE_REPODATA | REPO_NO_INTERNALIZE | APPDATA_SEARCH_UNINTERNALIZED_FILELIST);
 #endif
   repodata_internalize(data);