Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 610944

Summary: app-portage/gentoolkit: imlate fails on parcing xml's it shouldn't
Product: Portage Development Reporter: Fat-Zer <fatzer2>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: UNCONFIRMED ---    
Severity: normal CC: itumaykin+gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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