diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-03 13:20:27 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-03 13:20:27 -0700 |
commit | 55eb40b9f740d26ca33bdc70482eacc948bf3b76 (patch) | |
tree | 30ad1351b1d49914943d4e781ea72c9c75678216 | |
parent | 28398e3448af0428f93b3f4035bb0c3c95ee8263 (diff) |
Ignore Upgrades had not 1, but 2! reasons to fail.
-rw-r--r-- | MobileCydia.mm | 19 | ||||
-rw-r--r-- | 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) <saurik@saurik.com> 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 |