From 55eb40b9f740d26ca33bdc70482eacc948bf3b76 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 3 Jul 2015 13:20:27 -0700 Subject: Ignore Upgrades had not 1, but 2! reasons to fail. --- MobileCydia.mm | 19 +++++++------------ cydia.control | 2 +- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 322bf5c..50db308 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7866,20 +7866,15 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi const char *package([name_ UTF8String]); bool on([ignoredSwitch_ isOn]); - pid_t pid(ExecFork()); - if (pid == 0) { - FILE *dpkg(popen("/usr/libexec/cydo --set-selections", "w")); - fwrite(package, strlen(package), 1, dpkg); - - if (on) - fwrite(" hold\n", 6, 1, dpkg); - else - fwrite(" install\n", 9, 1, dpkg); + FILE *dpkg(popen("/usr/libexec/cydia/cydo --set-selections", "w")); + fwrite(package, strlen(package), 1, dpkg); - pclose(dpkg); + if (on) + fwrite(" hold\n", 6, 1, dpkg); + else + fwrite(" install\n", 9, 1, dpkg); - exit(0); - } ReapZombie(pid); + pclose(dpkg); } - (void) onIgnored:(id)control { diff --git a/cydia.control b/cydia.control index ba88add..f10cd85 100644 --- a/cydia.control +++ b/cydia.control @@ -5,7 +5,7 @@ Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm Version: Replaces: bigboss, bigbossbetarepo, com.sosiphone.addcydia, cydia-sources, ispazio.net, modmyifone, saurik, ste, yellowsn0w.com, zodttd -Depends: apr-lib, apt7-lib, apt7-key, cydia-lproj (>= 1.1.10), darwintools, debianutils, org.thebigboss.repo.icons, sed, shell-cmds, system-cmds, uikittools (>= 1.1.4) +Depends: apt7-lib, apt7-key, cydia-lproj (>= 1.1.10), darwintools, debianutils, org.thebigboss.repo.icons, sed, shell-cmds, system-cmds, uikittools (>= 1.1.4) Conflicts: bigboss, bigbossbetarepo, com.sosiphone.addcydia, cydia-sources, ispazio.net, modmyifone, ste, yellowsn0w.com, zodttd Pre-Depends: debianutils Provides: bigbossbetarepo, cydia-sources -- cgit v1.2.3