diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-23 19:48:30 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:13 -0800 |
commit | a08145a8a76622a3d90957a4fc33bed14d4ce471 (patch) | |
tree | c2cb58d0fcf1340b1fe7ada9c5ab6262648702b7 | |
parent | c138614de2b37cfd7bdf12a9b7998ae6b6108230 (diff) |
Verified and fixed code for configuration update.
-rw-r--r-- | MobileCydia.mm | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 86db911..46bb97e 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -3392,11 +3392,17 @@ static NSString *Warning_; size_t size(line.size()); lprintf("S:%s\n", data); - if (conffile_r(data, size)) + if (conffile_r(data, size)) { + // status: /fail : conffile-prompt : '/fail' '/fail.dpkg-new' 1 1 [delegate_ performSelectorOnMainThread:@selector(setConfigurationData:) withObject:conffile_r[1] waitUntilDone:YES]; - else if (strncmp(data, "status: ", 8) == 0) { + } else if (strncmp(data, "status: ", 8) == 0) { + // status: <package>: {unpacked,half-configured,installed} CydiaProgressEvent *event([CydiaProgressEvent eventWithMessage:[NSString stringWithUTF8String:(data + 8)] ofType:@"STATUS"]); - [progress_ performSelectorOnMainThread:@selector(addProgressEvent) withObject:event waitUntilDone:YES]; + [progress_ performSelectorOnMainThread:@selector(addProgressEvent:) withObject:event waitUntilDone:YES]; + } else if (strncmp(data, "processing: ", 12) == 0) { + // processing: configure: config-test + CydiaProgressEvent *event([CydiaProgressEvent eventWithMessage:[NSString stringWithUTF8String:(data + 12)] ofType:@"STATUS"]); + [progress_ performSelectorOnMainThread:@selector(addProgressEvent:) withObject:event waitUntilDone:YES]; } else if (pmstatus_r(data, size)) { std::string type([pmstatus_r[1] UTF8String]); @@ -9550,6 +9556,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { ] autorelease]; [alert setContext:@"conffile"]; + [alert setNumberOfRows:2]; [alert show]; } |