]> git.saurik.com Git - cydia.git/commitdiff
No: inline implementation is *equally* invalid ;P.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 5 Jul 2015 07:57:41 +0000 (00:57 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 5 Jul 2015 07:57:41 +0000 (00:57 -0700)
Library/fixhalf.sh [deleted file]
MobileCydia.mm

diff --git a/Library/fixhalf.sh b/Library/fixhalf.sh
deleted file mode 100755 (executable)
index 325493c..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-rm -f /var/lib/dpkg/info/"$1".prerm
-rm -f /var/lib/dpkg/info/"$1".postrm
-rm -f /var/lib/dpkg/info/"$1".preinst
-rm -f /var/lib/dpkg/info/"$1".postinst
-rm -f /var/lib/dpkg/info/"$1".extrainst_
index 559675907d7c2d5dcc6298eb7b3868610cad8edf..e03dee4b3c8f14d589ab2af15426c8b2f8f1013d 100644 (file)
@@ -9349,7 +9349,14 @@ _end
             @synchronized (self) {
                 for (Package *broken in (id) broken_) {
                     [broken remove];
-                    system([[NSString stringWithFormat:@"/usr/libexec/cydia/cydo /usr/libexec/cydia/fixhalf.sh %@", [broken id]] UTF8String]);
+                    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]);
                 }
 
                 [self resolve];