From: Jay Freeman (saurik) Date: Mon, 25 Aug 2008 21:11:20 +0000 (+0000) Subject: Moved /notice/ to somewhere with more bandwidth, fixed a typo in Information, updated... X-Git-Tag: v1.0.3366~388 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/90515f88be42ea9643a58b2608583a0c3e1fac43 Moved /notice/ to somewhere with more bandwidth, fixed a typo in Information, updated MMI's icon, and changed around case sorting routines. --- diff --git a/Cydia.app/Sources/modmyifone.com.png b/Cydia.app/Sources/modmyifone.com.png index a7ca4707..18885ea9 100644 Binary files a/Cydia.app/Sources/modmyifone.com.png and b/Cydia.app/Sources/modmyifone.com.png differ diff --git a/Cydia.app/package.html b/Cydia.app/package.html index a31d7db9..5ea2f480 100644 --- a/Cydia.app/package.html +++ b/Cydia.app/package.html @@ -161,7 +161,7 @@ - +
diff --git a/Cydia.app/package.js b/Cydia.app/package.js index 0dfa6dc9..6f9ccf11 100644 --- a/Cydia.app/package.js +++ b/Cydia.app/package.js @@ -39,7 +39,7 @@ $(function () { $("#author-href").href("mailto:" + author.address + "?subject=" + regarding); } - $("#notice-src").src("http://cydia.saurik.com/notice/" + encodeURIComponent(id) + ".html"); + $("#notice-src").src("http://apt.saurik.com/notice/" + encodeURIComponent(id) + ".html"); var depiction = package.depiction; if (depiction == null) diff --git a/Cydia.mm b/Cydia.mm index bc34076c..81d090fc 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -149,6 +149,8 @@ extern "C" { #import "UICaboodle.h" /* }}} */ +static const NSStringCompareOptions CompareOptions_ = NSCaseInsensitiveSearch | NSNumericSearch | NSDiacriticInsensitiveSearch | NSWidthInsensitiveSearch | NSForcedOrderingSearch; + @interface WebView (Cydia) - (void) _setLayoutInterval:(float)interval; @end @@ -924,7 +926,7 @@ class Progress : return NSOrderedDescending; } - return [lhs caseInsensitiveCompare:rhs]; + return [lhs compare:rhs options:CompareOptions_]; } - (NSDictionary *) record { @@ -1473,7 +1475,7 @@ NSString *Scour(const char *field, const char *begin, const char *end) { NSRange range; - range = [[self id] rangeOfString:text options:NSCaseInsensitiveSearch]; + range = [[self id] rangeOfString:text options:NSCaseInsentiveSearch]; if (range.location != NSNotFound) return YES; @@ -1524,7 +1526,7 @@ NSString *Scour(const char *field, const char *begin, const char *end) { return NSOrderedDescending; } - return [lhs caseInsensitiveCompare:rhs]; + return [lhs compare:rhs options:CompareOptions_]; } - (NSComparisonResult) compareBySection:(Package *)package { @@ -1536,7 +1538,7 @@ NSString *Scour(const char *field, const char *begin, const char *end) { else if (lhs != NULL && rhs == NULL) return NSOrderedDescending; else if (lhs != NULL && rhs != NULL) { - NSComparisonResult result = [lhs caseInsensitiveCompare:rhs]; + NSComparisonResult result = [lhs compare:rhs options:CompareOptions_]; if (result != NSOrderedSame) return result; } @@ -1671,7 +1673,7 @@ NSString *Scour(const char *field, const char *begin, const char *end) { return NSOrderedDescending; } - return [lhs caseInsensitiveCompare:rhs]; + return [lhs compare:rhs options:CompareOptions_]; } - (Section *) initWithName:(NSString *)name { @@ -6085,7 +6087,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { readlink("/Library/Wallpaper", NULL, 0) == -1 && errno == EINVAL || readlink("/usr/include", NULL, 0) == -1 && errno == EINVAL || readlink("/usr/libexec", NULL, 0) == -1 && errno == EINVAL || - readlink("/usr/share", NULL, 0) == -1 && errno == EINVAL + readlink("/usr/share", NULL, 0) == -1 && errno == EINVAL /*|| + readlink("/var/lib", NULL, 0) == -1 && errno == EINVAL*/ ) { [self setIdleTimerDisabled:YES];