diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 13:37:10 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 13:37:10 -0700 |
commit | e411eb1b4119ed9abf321712e896360e16a78322 (patch) | |
tree | 96a5bfe553b2df0e0a4921d6fca357087820df18 | |
parent | 5685d5148f9cbab872d63dcd00ab278c1a8a762f (diff) |
Use sh to escape package names for fixhalf script.
-rwxr-xr-x | Library/fixhalf.sh | 6 | ||||
-rw-r--r-- | MobileCydia.mm | 10 |
2 files changed, 7 insertions, 9 deletions
diff --git a/Library/fixhalf.sh b/Library/fixhalf.sh new file mode 100755 index 0000000..73fcfa9 --- /dev/null +++ b/Library/fixhalf.sh @@ -0,0 +1,6 @@ +#!/bin/bash +rm -f /var/lib/dpkg/info/%@.prerm +rm -f /var/lib/dpkg/info/%@.postrm +rm -f /var/lib/dpkg/info/%@.preinst +rm -f /var/lib/dpkg/info/%@.postinst +rm -f /var/lib/dpkg/info/%@.extrainst_ 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]; |