Permalink
Browse files

If Sparkle can't parse one item, it no longer fails the entire appcast.

  • Loading branch information...
1 parent dc249c1 commit bc7aff3f11a1919704975ab3eaed0b6a3e27af00 @andymatuschak andymatuschak committed Jul 9, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 SUAppcast.m
View
@@ -101,7 +101,7 @@ - (void)connectionDidFinishLoading:(NSURLConnection *)connection
if (date)
[dict setObject:date forKey:name];
}
- else
+ else if (name != nil)
{
// add all other values as strings
[dict setObject:[[node stringValue] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] forKey:name];
@@ -118,7 +118,7 @@ - (void)connectionDidFinishLoading:(NSURLConnection *)connection
}
else
{
- failed = YES;
+ NSLog(@"Sparkle Updater: Failed to parse appcast item with appcast dictionary %@!", dict);
}
[dict removeAllObjects];
}

0 comments on commit bc7aff3

Please sign in to comment.