diff options
-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]; |