summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-23 08:52:43 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:11 -0800
commit4a2dc82e902c02b46f19e2a7f926c858fc916a08 (patch)
tree0f53cbc2fb137493f1d9ac2716f41b7c06d6f975
parente3d2a2f5d8ce863e4113829dde82673effdbc912 (diff)
Do not claim dpkg-exec is a package (stupid APT).
-rw-r--r--MobileCydia.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 23607ac..c11f6c5 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -3342,7 +3342,10 @@ static NSString *Warning_;
[progress_ performSelectorOnMainThread:@selector(addProgressEvent) withObject:event waitUntilDone:YES];
} else if (pmstatus_r(data, size)) {
std::string type([pmstatus_r[1] UTF8String]);
+
NSString *package = pmstatus_r[2];
+ if ([package isEqualToString:@"dpkg-exec"])
+ package = nil;
float percent([pmstatus_r[3] floatValue]);
[progress_ performSelectorOnMainThread:@selector(setProgressPercent:) withObject:[NSNumber numberWithFloat:(percent / 100)] waitUntilDone:YES];