[Apt-Rpm] [PATCH 2/2] Output streams fix

Vladislav Bogdanov slava_reg at nsys.by
Mon Nov 3 14:55:16 PST 2008


Hi!

c0out, c1out and c2out are declared static in 'cmdline.h' which is included both
in 'cmdline.cc' and f.e. 'apt-shell.cc'.
So, each source file has its own instances of streams.
cout duplication to that streams is done in apt-shell.cc, but functions in cmdline.cc
use another streams, so output is partially lost (F.e. 'list' command in apt-shell dosn't show anything).

Patch attached.

Vladislav.

P.S. Dag, would you please include both patches in your build?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: apt-0.5.15lorg3.94a-output-streams.patch
URL: <http://lists.laiskiainen.org/pipermail/apt-rpm-laiskiainen.org/attachments/20081104/7b484f22/attachment-0002.asc>


More information about the Apt-Rpm mailing list