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
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-19 23:02 UTC by Zac Medico
Modified: 2023-10-16 06:09 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 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.