]> git.saurik.com Git - cydia.git/commitdiff
Fixed an XHTML issue, finished confirmation Javascript, and finally enhanced Test...
authorJay Freeman (saurik) <saurik@saurk.com>
Tue, 9 Dec 2008 03:14:28 +0000 (03:14 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:09:04 +0000 (07:09 +0000)
Cydia.app/Test
Cydia.app/confirm.html
Cydia.app/confirm.js
Cydia.app/loading.html

index ad27eebcca2c661f9d88a5d9e607d81de484876a..5bfd0902a226f5eab69c072187c46c836bf836ce 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/bash
+killall Cydia_
 set -e
-Cydia=$(dirname "$0")
-rsync -SPaz saurik@carrier.saurik.com:menes/cydia/Cydia "${Cydia}"/Cydia_
-chmod +s "${Cydia}"/Cydia_
-#NSZombieEnabled=YES su -c "${Cydia}"/Cydia_ mobile
+rsync -SPaz --copy-links saurik@carrier.saurik.com:menes/cydia/cydia_iphoneos-arm.deb .
+dpkg -i cydia_iphoneos-arm.deb
+touch /tmp/cydia.log
+openURL "${1-cydia://}"
+exec tail /tmp/cydia.log -fn0
index 55fec235e37f4f3513cf1c9c920319ff74f4232e..b1fc0dc76d7179dad65e4ffc6d0bfb7ce27a33cb 100644 (file)
@@ -6,11 +6,15 @@
     <link rel="stylesheet" type="text/css" href="menes/style.css"/>
     <script type="text/javascript" src="menes/menes.js"></script>
     <script type="text/javascript" src="confirm.js"></script>
-</head><body>
-<dialog><panel>
+</head><body class="pinstripe">
+<dialog><panel id="issues">
 
-<label>Statistics</label>
-<fieldset>
+<fieldset class="issues">
+    <div><p><span style="color: red; font-weight: bold">Note:</span> The requested modifications cannot be applied due to required dependencies or conflicts that cannot be automatically found or fixed.</p></div>
+</fieldset>
+
+<label class="_issues">Statistics</label>
+<fieldset class="_issues">
     <div class="downloading">
         <label>Downloading</label>
         <div id="downloading"></div>
index 09a121cd29c6cac6734bb1a48af286c68b243d1a..9210295d033072a0adc60ffd706dac7b6bc604e5 100644 (file)
@@ -1,28 +1,52 @@
 $(function () {
-    var downloading = sizes[0];
-    if (downloading == "0.0 B")
-        $(".downloading").remove();
-    else
-        $("#downloading").html($.xml(downloading));
+    if (issues == null) {
+        $(".issues").remove();
 
-    var resuming = sizes[1];
-    if (resuming == "0.0 B")
-        $(".resuming").remove();
-    else
+        var downloading = sizes[0];
+        if (downloading == "0.0 B")
+            $(".downloading").remove();
+        else
+        $("#downloading").html($.xml(downloading));
+    
+        var resuming = sizes[1];
+        if (resuming == "0.0 B")
+            $(".resuming").remove();
+        else
         $("#resuming").html($.xml(resuming));
 
-    var size = sizes[2];
-    var negative;
+        var size = sizes[2];
+        var negative;
 
-    if (size.charAt(0) != '-')
-        negative = false;
-    else {
-        negative = true;
-        size = size.substr(1);
-    }
+        if (size.charAt(0) != '-')
+            negative = false;
+        else {
+            negative = true;
+            size = size.substr(1);
+        }
+
+        $("#disk-key").html(negative ? "Disk Freeing" : "Disk Using");
+        $("#disk-value").html($.xml(size));
+    } else for (var i = 0; i != issues.length; ++i) {
+        $("._issues").remove();
 
-    $("#disk-key").html(negative ? "Disk Freeing" : "Disk Using");
-    $("#disk-value").html($.xml(size));
+        var issue = issues[i];
+
+        $("#issues").append(
+            "<label style=\"color: #704d4d\">" + issue[0] + "</label>" +
+            "<fieldset style=\"background-color: #dddddd\" class=\"clearfix\" id=\"i" + i + "\"></fieldset>"
+        );
+
+        for (var j = 1; j != issue.length; ++j) {
+            var entry = issue[j];
+            var type = entry[0];
+            if (type == "PreDepends")
+                type = "Depends";
+            $("#i" + i).append("<div>" +
+                "<label>" + type + "</label>" +
+                "<div>" + entry[1] + " " + entry[3] + "</div>" +
+            "</div>");
+        }
+    }
 
     var keys = [
         "Install",
@@ -39,7 +63,7 @@ $(function () {
         if (length != 0) {
             $("#modifications").append("<div class=\"clearfix\">" +
                 "<label>" + keys[i] + "</label>" +
-                "<div id=\"i" + i + "\"></div>" +
+                "<div id=\"c" + i + "\"></div>" +
             "</div>");
 
             var value = "";
@@ -49,7 +73,7 @@ $(function () {
                 value += $.xml(list[j]);
             }
 
-            $("#i" + i).html(value);
+            $("#c" + i).html(value);
         }
     }
 });
index 85cc4c5c40323fba8cff72b719c8d75dfa941ed0..33b263717fd581b2631851742edad78ee7389a38 100644 (file)
@@ -7,7 +7,7 @@
     <base target="_blank"/>
 </head><body>
     <div style="padding: 5px 7px">
-        <span style="color: #4d4d70; font-weight: normal; font-size: 16px"/>
+        <span style="color: #4d4d70; font-weight: normal; font-size: 16px">
             <div style="display: inline-block; background-image: url(menes/indicator-c7ced5-4d4d70.gif); width: 16px; height: 16px; margin: 2px 0 -2px 0"></div>
             <span style="margin: 0 4px">Loading...</span>
         </span>