summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-07-02 13:37:10 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-07-02 13:37:10 -0700
commite411eb1b4119ed9abf321712e896360e16a78322 (patch)
tree96a5bfe553b2df0e0a4921d6fca357087820df18 /MobileCydia.mm
parent5685d5148f9cbab872d63dcd00ab278c1a8a762f (diff)
Use sh to escape package names for fixhalf script.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm10
1 files changed, 1 insertions, 9 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 8765b7d..968a67a 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -9344,15 +9344,7 @@ _end
@synchronized (self) {
for (Package *broken in (id) broken_) {
[broken remove];
- NSString *id = [broken id];
-
- system([[NSString stringWithFormat:@"/usr/libexec/cydia/cydo /bin/rm -f"
- " /var/lib/dpkg/info/%@.prerm"
- " /var/lib/dpkg/info/%@.postrm"
- " /var/lib/dpkg/info/%@.preinst"
- " /var/lib/dpkg/info/%@.postinst"
- " /var/lib/dpkg/info/%@.extrainst_"
- , id, id, id, id, id] UTF8String]);
+ system([[NSString stringWithFormat:@"/usr/libexec/cydia/cydo /usr/libexec/cydia/fixhalf.sh %@", [broken id]] UTF8String]);
}
[self resolve];