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 /MobileCydia.mm | |
parent | 28398e3448af0428f93b3f4035bb0c3c95ee8263 (diff) |
Ignore Upgrades had not 1, but 2! reasons to fail.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 19 |
1 files changed, 7 insertions, 12 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 { |