mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
generate_appcast follow symbolic links
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
This commit is contained in:
1 parent
f2fc729b69
commit
7233bb93e7
1 file changed
+2
-1
@@ -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 = []
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user