diff options
author | Sam Bingner <sam@bingner.com> | 2020-04-20 21:53:44 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2021-03-16 13:10:32 -1000 |
commit | e0fa58f6dc651d8376bfbb0bd0fde3d221f1d192 (patch) | |
tree | e38d8e0060bdbb2802ce14aae3873a85d0021cc0 | |
parent | d1027179026357c0db89c7b27dd8d774e34e574b (diff) |
Hack to make output not get out of order1.8.2.z+ios+json
-rw-r--r-- | apt-pkg/algorithms.mm | 4 |
1 files changed, 1 insertions, 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; } |