From e0fa58f6dc651d8376bfbb0bd0fde3d221f1d192 Mon Sep 17 00:00:00 2001 From: Sam Bingner Date: Mon, 20 Apr 2020 21:53:44 -1000 Subject: Hack to make output not get out of order --- apt-pkg/algorithms.mm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apt-pkg/algorithms.mm b/apt-pkg/algorithms.mm index 4ac63419b..6a72015d5 100644 --- a/apt-pkg/algorithms.mm +++ b/apt-pkg/algorithms.mm @@ -386,9 +386,7 @@ failout: if (doJSON && simulatedOperations != nil) { NSData *data = [NSJSONSerialization dataWithJSONObject:@{@"operations": simulatedOperations} options:NSJSONWritingPrettyPrinted error:nil]; simulatedOperations = nil; - NSFileHandle *stdout = [NSFileHandle fileHandleWithStandardOutput]; - [stdout writeData:data]; - cout << endl << flush; + cout << (char*)data.bytes << endl << flush; } return rv; } -- cgit v1.2.3