summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2020-04-20 21:53:44 -1000
committerSam Bingner <sam@bingner.com>2020-04-20 22:05:48 -1000
commit4fb24a493f22558f637b2cb92059458e104354e7 (patch)
tree8ffd58aa8ac4e5ed0d8e524c45e2fd8faba0bde3
parentd91dc98560a5ce7b55d710861614d3fee7e164bb (diff)
Hack to make output not get out of order
-rw-r--r--apt-pkg/algorithms.mm4
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;
}