Fix euscan by using portage MetadataXML over gentoolkit Metadata
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
c51d3fc70c
commit
bae87b0877
@ -4,7 +4,7 @@ import pkgutil
|
||||
|
||||
from euscan import CONFIG, output
|
||||
|
||||
from gentoolkit.metadata import MetaData
|
||||
from portage.xml.metadata import MetaDataXML
|
||||
|
||||
handlers = {'package': [], 'url': [], 'all': {}}
|
||||
|
||||
@ -64,7 +64,7 @@ def get_metadata(pkg):
|
||||
|
||||
try:
|
||||
if os.path.exists(meta_override):
|
||||
pkg_metadata = MetaData(meta_override)
|
||||
pkg_metadata = MetaDataXML(meta_override)
|
||||
output.einfo('Using custom metadata: %s' % meta_override)
|
||||
if not pkg_metadata:
|
||||
pkg_metadata = pkg.metadata
|
||||
|
Loading…
Reference in New Issue
Block a user