Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

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
Task Type Bug Report
Category Output
Status Closed
Assigned To Xavier (shining)
Architecture All
Severity Low
Priority Normal
Reported Version 3.3.3
Due in Version 3.5.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Loading...