Fix euscan by using portage MetadataXML over gentoolkit Metadata

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2023-11-14 20:31:36 +02:00
parent c51d3fc70c
commit bae87b0877
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

View File

@ -4,7 +4,7 @@ import pkgutil
from euscan import CONFIG, output from euscan import CONFIG, output
from gentoolkit.metadata import MetaData from portage.xml.metadata import MetaDataXML
handlers = {'package': [], 'url': [], 'all': {}} handlers = {'package': [], 'url': [], 'all': {}}
@ -64,7 +64,7 @@ def get_metadata(pkg):
try: try:
if os.path.exists(meta_override): if os.path.exists(meta_override):
pkg_metadata = MetaData(meta_override) pkg_metadata = MetaDataXML(meta_override)
output.einfo('Using custom metadata: %s' % meta_override) output.einfo('Using custom metadata: %s' % meta_override)
if not pkg_metadata: if not pkg_metadata:
pkg_metadata = pkg.metadata pkg_metadata = pkg.metadata