Permalink
Browse files

Load data in /usr/share/metainfo

  • Loading branch information...
1 parent d4e57d2 commit 4f05cc123672f15e4d94dd36c5b6ffe8f3d574ae @ximion committed Apr 12, 2016
Showing with 4 additions and 4 deletions.
  1. +1 −1 dep11/extractor.py
  2. +2 −2 dep11/generator.py
  3. +1 −1 dep11/parsers.py
View
@@ -198,7 +198,7 @@ def _process_pkg(self, pkg, metainfo_files=None):
# process all AppStream XML files
for meta_file in metainfo_files:
- if meta_file.endswith(".xml") and meta_file.startswith("usr/share/appdata"):
+ if meta_file.endswith(".xml") and (meta_file.startswith("usr/share/metainfo") or meta_file.startswith("usr/share/appdata")):
xml_content = None
cpt = Component(self._suite_name, pkg)
View
@@ -399,10 +399,10 @@ def prepopulate_cache(self, suite_name):
if 'usr/share/applications/' in f:
ignore = False
break
- if 'usr/share/appdata/' in f:
+ if 'usr/share/metainfo/' in f:
ignore = False
break
- if '/pkgconfig/' in f:
+ if 'usr/share/appdata/' in f:
ignore = False
break
View
@@ -290,7 +290,7 @@ def _parse_releases_tag(relstag):
def read_appstream_upstream_xml(cpt, xml_content):
'''
- Reads the appdata from the xml file in usr/share/appdata.
+ Reads the metadata from the xml file in usr/share/metainfo.
Sets ComponentData properties
'''

0 comments on commit 4f05cc1

Please sign in to comment.