FS#18770 - redirect scriptlet stderr through alpm
Attached to Project:
Pacman
Opened by Jonathan Conder (PirateJonno) - Sunday, 21 March 2010, 01:05 GMT
Last edited by Dan McGee (toofishes) - Monday, 30 August 2010, 15:05 GMT
Opened by Jonathan Conder (PirateJonno) - Sunday, 21 March 2010, 01:05 GMT
Last edited by Dan McGee (toofishes) - Monday, 30 August 2010, 15:05 GMT
|
Details
Hi, I am writing a frontend for pacman that displays
messages for each PM_TRANS_EVT_SCRIPTLET_INFO received. I
recently noticed that only stdout gets piped through alpm to
the scriptlet info event. For example, when upgrading my
kernel with pacman I usually get a warning message from LZMA
during mkinitcpio. This warning was not displayed in my
frontend, so I wondered if this could be fixed in alpm.
The easiest solution I can think of is to add a redirection ("2>&1" I think) to the end of cmdline in _alpm_runscriptlet (in trans.c). However, this might not be the best one as it would mean that stdout and stderr would be indistinguishable to the frontend. It also might be nonstandard shell syntax, so popen might not handle it correctly (I'm not sure). Anyway, if something could be done about this I would appreciate it. |
This task depends upon
Closed by Dan McGee (toofishes)
Monday, 30 August 2010, 15:05 GMT
Reason for closing: Fixed
Additional comments about closing: fixed by 0223a028e0835b6e09e2654e62ce5fd462370ffb
Monday, 30 August 2010, 15:05 GMT
Reason for closing: Fixed
Additional comments about closing: fixed by 0223a028e0835b6e09e2654e62ce5fd462370ffb