summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-07 23:40:48 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-08 01:51:00 -0800
commit22485d93d47fb92ef04faca680a1f50e7df41edf (patch)
treef35897822561c24b3f3bb50483dbb3f9431afa37 /MobileCydia.mm
parentd9fc1d3713a7d40d51ffd8db08b7045fa5a263d1 (diff)
Automatically attach cydia.log and `dpkg -l`.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 164d249..61ffac3 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -4238,6 +4238,13 @@ static _H<NSMutableSet> Diversions_;
[window setValue:cydia_ forKey:@"cydia"];
}
+- (void) _setupMail:(MFMailComposeViewController *)controller {
+ [controller addAttachmentData:[NSData dataWithContentsOfFile:@"/tmp/cydia.log"] mimeType:@"text/plain" fileName:@"cydia.log"];
+
+ system("/usr/bin/dpkg -l >/tmp/dpkgl.log");
+ [controller addAttachmentData:[NSData dataWithContentsOfFile:@"/tmp/dpkgl.log"] mimeType:@"text/plain" fileName:@"dpkgl.log"];
+}
+
- (NSURL *) URLWithURL:(NSURL *)url {
return [Diversion divertURL:url];
}