Navigation Menu

Skip to content

Commit

Permalink
generate_appcast follow symbolic links
Browse files Browse the repository at this point in the history
When archives are stored as symlinks e.g. due to storing binary files in a
git-annex repository, everything works file except file size in the generate
feed xml file. This patch makes generate_appcast correctly determine file size
by following the symlink
  • Loading branch information
shadone authored and kornelski committed Sep 10, 2020
1 parent f2fc729 commit 7233bb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generate_appcast/ArchiveItem.swift
Expand Up @@ -63,7 +63,8 @@ class ArchiveItem: CustomStringConvertible {
} else {
self.publicEdKey = nil
}
self.archiveFileAttributes = try FileManager.default.attributesOfItem(atPath: self.archivePath.path)
let path = (self.archivePath.path as NSString).resolvingSymlinksInPath
self.archiveFileAttributes = try FileManager.default.attributesOfItem(atPath: path)
self.deltas = []
}

Expand Down

0 comments on commit 7233bb9

Please sign in to comment.