From: Felix Paul Kühne Date: Tue, 4 Nov 2014 23:12:51 +0000 (+0100) Subject: contrib/sparkle: fix runtime exception on snow leopard X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=fa447d33bcf2a957d590d90fd362744c1b69ea7a;p=vlc contrib/sparkle: fix runtime exception on snow leopard --- diff --git a/contrib/src/sparkle/rules.mak b/contrib/src/sparkle/rules.mak index 1aefb0b390..41459aeb9b 100644 --- a/contrib/src/sparkle/rules.mak +++ b/contrib/src/sparkle/rules.mak @@ -15,6 +15,7 @@ $(TARBALLS)/Sparkle-$(SPARKLE_VERSION).zip: sparkle: Sparkle-$(SPARKLE_VERSION).zip .sum-sparkle $(UNPACK) $(APPLY) $(SRC)/sparkle/sparkle-fix-compilation-on-snowleopard.patch + $(APPLY) $(SRC)/sparkle/sparkle-fix-runtime-exception-on-snowleopard.patch $(MOVE) .sparkle: sparkle diff --git a/contrib/src/sparkle/sparkle-fix-runtime-exception-on-snowleopard.patch b/contrib/src/sparkle/sparkle-fix-runtime-exception-on-snowleopard.patch new file mode 100644 index 0000000000..17f519c2a5 --- /dev/null +++ b/contrib/src/sparkle/sparkle-fix-runtime-exception-on-snowleopard.patch @@ -0,0 +1,13 @@ +diff -ru sparkle/SUBasicUpdateDriver.m sparkled/SUBasicUpdateDriver.m +--- sparkle/SUBasicUpdateDriver.m 2014-11-05 00:05:47.000000000 +0100 ++++ sparkled-fixed/SUBasicUpdateDriver.m 2014-11-04 23:48:19.000000000 +0100 +@@ -105,9 +105,6 @@ + { + if ([[updater delegate] respondsToSelector:@selector(updater:didFinishLoadingAppcast:)]) + [[updater delegate] updater:updater didFinishLoadingAppcast:ac]; +- +- NSDictionary *userInfo = (ac != nil) ? [NSDictionary dictionaryWithObject:SUUpdaterAppcastNotificationKey forKey:ac] : nil; +- [[NSNotificationCenter defaultCenter] postNotificationName:SUUpdaterDidFinishLoadingAppCastNotification object:updater userInfo:userInfo]; + + SUAppcastItem *item = nil; +