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

Bug 686342

Summary: sys-apps/portage: suppress doins python traceback
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Zac Medico gentoo-dev 2019-05-19 23:02:14 UTC
We can suppress the doins python traceback, like this one from bug 686330:

> Traceback (most recent call last):
>   File "/usr/lib/portage/python3.6/doins.py", line 611, in <module>
>     sys.exit(main(sys.argv[1:]))
>   File "/usr/lib/portage/python3.6/doins.py", line 602, in main
>     os.path.dirname(source)):
>   File "/usr/lib/portage/python3.6/doins.py", line 450, in _doins
>     return install_runner.install_file(source, os.path.dirname(dest))
>   File "/usr/lib/portage/python3.6/doins.py", line 386, in install_file
>     return self._ins_runner.run(source, dest_dir)
>   File "/usr/lib/portage/python3.6/doins.py", line 195, in run
>     sstat = os.stat(source)
> FileNotFoundError: [Errno 2] No such file or directory: b'*'
> ERROR: sys-kernel/linux-firmware-20190514::gentoo failed (install phase):
>    doins failed

In order to make the output even more readable, we could add a doins shell function that calls the die function when appropriate, displaying a bash stack trace.