]> git.sesse.net Git - vlc/commitdiff
contrib/sparkle: fix runtime exception on snow leopard
authorFelix Paul Kühne <fkuehne@videolan.org>
Tue, 4 Nov 2014 23:12:51 +0000 (00:12 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Tue, 4 Nov 2014 23:13:24 +0000 (00:13 +0100)
contrib/src/sparkle/rules.mak
contrib/src/sparkle/sparkle-fix-runtime-exception-on-snowleopard.patch [new file with mode: 0644]

index 1aefb0b390bc839227f79be9975ba6fd9cdf98ac..41459aeb9bf8e04e30d8c29687ff064206e07253 100644 (file)
@@ -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 (file)
index 0000000..17f519c
--- /dev/null
@@ -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;
+