From 4fb24a493f22558f637b2cb92059458e104354e7 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