summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}