#!/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
<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>
$(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",
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 = "";
value += $.xml(list[j]);
}
- $("#i" + i).html(value);
+ $("#c" + i).html(value);
}
}
});