New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkgng: Add stdout and stderr to response object #560
pkgng: Add stdout and stderr to response object #560
Conversation
To ease debugging if something goes wrong during pkg run.
Fix crash when run with "autoremove: yes" but no packages need to be autoremoved.
You need a changelog fragment. |
Thanks @felixfontein - added a changelog fragment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you tested this?
…stderr.yaml Co-authored-by: Felix Fontein <felix@fontein.de>
There aren't really any automated tests for this module at present. I manually tested package installs (state: present), upgrades (state: latest with an older package installed), uninstalls (state: absent) and autoremove. They all work as expected. |
@dsg22 thanks for implementing this! |
To ease debugging if something goes wrong during pkg run.
SUMMARY
Expose the stdout and stderr of pkg through the result object of the pkgng module. Currently, if something goes wrong during the pkg run, the user has no way to see what happened, which makes recovering from that situation more difficult.
ISSUE TYPE
COMPONENT NAME
pkgng
ADDITIONAL INFORMATION