]> git.saurik.com Git - cydia.git/commitdiff
Rely on /var/lib/cydia/firmware.ver over /tmp/.cydia.fw.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 21 Mar 2011 10:37:11 +0000 (03:37 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 21 Mar 2011 10:37:11 +0000 (03:37 -0700)
MobileCydia.mm
preinst

index dd7b14ac802068eec677b94e9aaf807e6126e4ff..f9e5bdeeae2a50367c0a069aa6ab2e1b24ad5d15 100644 (file)
@@ -10362,11 +10362,7 @@ int main(int argc, char *argv[]) {
 
     int version([[NSString stringWithContentsOfFile:@"/var/lib/cydia/firmware.ver"] intValue]);
 
-    if (access("/tmp/.cydia.fw", F_OK) == 0) {
-        unlink("/tmp/.cydia.fw");
-        goto firmware;
-    } else if (access("/User", F_OK) != 0 || version < 5) {
-      firmware:
+    if (access("/User", F_OK) != 0 || version != 5) {
         _trace();
         system("/usr/libexec/cydia/firmware.sh");
         _trace();
diff --git a/preinst b/preinst
index 86a4a25df18c2bdd833e075d29b44b1fd7451d42..2919749dd55177d84d4ee35691bcf83a9ad6c7f6 100755 (executable)
--- a/preinst
+++ b/preinst
@@ -13,8 +13,6 @@ if [[ $1 == upgrade ]]; then
             eval "echo 'finish:reopen' >&${cydia[0]}"
         fi
     fi
-
-    echo >/tmp/.cydia.fw
 fi
 
 exit 0