Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686342 - sys-apps/portage: suppress doins python traceback
Summary: sys-apps/portage: suppress doins python traceback
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
Depends on:
Reported: 2019-05-19 23:02 UTC by Zac Medico
Modified: 2019-05-19 23:02 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
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/", line 611, in <module>
>     sys.exit(main(sys.argv[1:]))
>   File "/usr/lib/portage/python3.6/", line 602, in main
>     os.path.dirname(source)):
>   File "/usr/lib/portage/python3.6/", line 450, in _doins
>     return install_runner.install_file(source, os.path.dirname(dest))
>   File "/usr/lib/portage/python3.6/", line 386, in install_file
>     return, dest_dir)
>   File "/usr/lib/portage/python3.6/", 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.