Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add the .xar extension to the enclosure URL if necessary

Fixes #338

The extension xar is added to the output file path for the docset utility, but it is not checked that it is in the url. Without this there is a scenario where the URL is missing the extension.
  • Loading branch information...
commit 05c41180fabfb87ce2fd05918ec0046e8320d73e 1 parent 2749182
@Cocoanetics authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 Generating/GBDocSetPublishGenerator.m
View
6 Generating/GBDocSetPublishGenerator.m
@@ -71,6 +71,12 @@ - (BOOL)generateOutputWithStore:(id)store error:(NSError **)error {
if(self.settings.docsetFeedFormats & GBPublishedFeedFormatAtom)
{
+ // typical atom enclosure url does not have an extension, add it if it doesn't
+ if (![url hasSuffix:@".xar"])
+ {
+ url = [url stringByAppendingPathExtension:@"xar"];
+ }
+
// Create command line arguments array.
NSMutableArray *args = [NSMutableArray array];
[args addObject:@"docsetutil"];
Please sign in to comment.
Something went wrong with that request. Please try again.