Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610944 - app-portage/gentoolkit: imlate fails on parcing xml's it shouldn't
Summary: app-portage/gentoolkit: imlate fails on parcing xml's it shouldn't
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-26 07:33 UTC by Fat-Zer
Modified: 2018-11-11 12:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fat-Zer 2017-02-26 07:33:31 UTC
the imlate fails with backtrace:

-------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/imlate", line 479, in <module>
    main()
  File "/usr/lib/python-exec/python2.7/imlate", line 473, in main
    pkgs = get_packages( conf )
  File "/usr/lib/python-exec/python2.7/imlate", line 218, in get_packages
    if not is_herd(conf["HERD"], join(conf["PORTDIR"], cp, "metadata.xml")):
  File "/usr/lib/python-exec/python2.7/imlate", line 180, in is_herd
    data = _get_metadata(metadata, "pkgmetadata", "herd")
  File "/usr/lib/python-exec/python2.7/imlate", line 119, in _get_metadata
    metadatadom = minidom.parse(metadata)
  File "/usr/lib64/python2.7/xml/dom/minidom.py", line 1918, in parse
    return expatbuilder.parse(file)
  File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 922, in parse
    fp = open(file, 'rb')
IOError: [Errno 2] No such file or directory: u'/var/portage/tree/eclass/ELT-patches/metadata.xml'
-------------------------------------

The removing of "eclass/ELT-patches" and "eclass/tests" subdirs workarounds this.

I sync tree from "rsync://rsync.ru.gentoo.org/gentoo-portage"; The same as for git tree from github.

Reproducible: Always