summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-07-02 03:39:27 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-07-02 03:39:27 -0700
commit525ada41a1072a68b490b48a66a2262b8eecab89 (patch)
tree7c472b462244ce160b17e247d1246dcd928744a3
parentf6b68b2c49618bf8df27e993bc3df42e913180db (diff)
Use cydo to delete half-installed package scripts.
-rw-r--r--MobileCydia.mm12
1 files changed, 6 insertions, 6 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index a97fb96..9eaa4cf 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -9441,12 +9441,12 @@ _end
[broken remove];
NSString *id = [broken id];
- _root({
- unlink([[NSString stringWithFormat:@"/var/lib/dpkg/info/%@.prerm", id] UTF8String]);
- unlink([[NSString stringWithFormat:@"/var/lib/dpkg/info/%@.postrm", id] UTF8String]);
- unlink([[NSString stringWithFormat:@"/var/lib/dpkg/info/%@.preinst", id] UTF8String]);
- unlink([[NSString stringWithFormat:@"/var/lib/dpkg/info/%@.postinst", id] UTF8String]);
- });
+ 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"
+ , id, id, id, id] UTF8String]);
}
[self resolve];