summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cydia.app/package.js17
-rw-r--r--Cydia.mm4
-rw-r--r--control2
3 files changed, 13 insertions, 10 deletions
diff --git a/Cydia.app/package.js b/Cydia.app/package.js
index 5aec9ff..0e2a941 100644
--- a/Cydia.app/package.js
+++ b/Cydia.app/package.js
@@ -59,6 +59,8 @@ var special_ = function () {
var icon = 'cydia://package-icon/' + idc;
var api = 'http://cydia.saurik.com/api/';
+ var support = package.support;
+
var regarding = function (type) {
return encodeURIComponent("Cydia/APT(" + type + "): " + name);
};
@@ -175,13 +177,10 @@ var special_ = function () {
space("#author", author.name, 160);
if (author.address == null)
$("#author-icon").addClass("deleted");
- else {
- var support = package.support;
- if (support == null)
- $("#author-href").href("mailto:" + author.address + "?subject=" + regarding("A"));
- else
- $("#author-href").href(support);
- }
+ else if (support == null)
+ $("#author-href").href("mailto:" + author.address + "?subject=" + regarding("A"));
+ else
+ $("#author-href").href(support);
}
//$("#notice-src").src("http://saurik.cachefly.net/notice/" + idc + ".html");
@@ -246,8 +245,10 @@ var special_ = function () {
space("#maintainer", maintainer.name, 153);
if (maintainer.address == null)
$("#maintainer-icon").addClass("deleted");
- else
+ else if (support == null)
$("#maintainer-href").href("mailto:" + maintainer.address + "?subject=" + regarding("M"));
+ else
+ $("#maintainer-href").href(support);
}
var sponsor = package.sponsor;
diff --git a/Cydia.mm b/Cydia.mm
index 3e45dad..56eb097 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -3634,7 +3634,9 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
}
- (Package *) getPackageById:(NSString *)id {
- return [[Database sharedInstance] packageWithName:id];
+ Package *package([[Database sharedInstance] packageWithName:id]);
+ [package parse];
+ return package;
}
- (NSArray *) statfs:(NSString *)path {
diff --git a/control b/control
index 91a7cca..6b1e1be 100644
--- a/control
+++ b/control
@@ -3,7 +3,7 @@ Priority: required
Section: Packaging
Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
Architecture: iphoneos-arm
-Version: 1.0.2943-1
+Version: 1.0.2944-1
Replaces: com.sosiphone.addcydia
Depends: apr-lib, apt7-lib, apt7-key, darwintools, pcre, shell-cmds, system-cmds
Pre-Depends: dpkg (>= 1.14.25-8)