[pacman-dev] pacman3 logging issues

Aaron Griffin aaronmgriffin at gmail.com
Thu Dec 28 12:17:55 EST 2006


On 12/28/06, Dan McGee <dpmcgee at gmail.com> wrote:
> I also noticed another funny issue. Run a 'pacman -Ss pacman >
> anyfile', and notice how each word of the description ends up on its
> own line. pacman 2 didn't do this, kind of an interesting behavior. I
> can try and look into this too.

Oh damn, didn't think about that one.  That has to do with the way it
determines the width for the description by getting the terminal
width.  (Which is 0 or null when not outputting to a terminal).

So, I need to check if we're a tty in getcols (simple fix).




More information about the pacman-dev mailing list