mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Fix an issue while searching a cloneable file (#2748)
Also bump minor version numbers for major versions 3 and 4 --------- Co-authored-by: Vincent Bénony <bsr43@hopperapp.com>
This commit is contained in:
1 parent
2cfb1e6fe2
commit
d491aafeb7
2 files changed
+8
-3
No files matched your search
@@ -115,9 +115,9 @@ uint16_t latestMinorVersionForMajorVersion(SUBinaryDeltaMajorVersion majorVersio
|
||||
case SUBinaryDeltaMajorVersion2:
|
||||
return 5;
|
||||
case SUBinaryDeltaMajorVersion3:
|
||||
return 2;
|
||||
return 3;
|
||||
case SUBinaryDeltaMajorVersion4:
|
||||
return 1;
|
||||
return 2;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -345,7 +345,12 @@ static NSString *cloneableRelativePath(NSDictionary<NSString *, NSData *> *after
|
||||
if (oldCloneInfo == nil) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
// The old file must have the same type as the new one
|
||||
if ([(NSNumber *)oldCloneInfo[INFO_TYPE_KEY] unsignedShortValue] != FTS_F) {
|
||||
continue;
|
||||
}
|
||||
|
||||
NSNumber *newPermissions = newInfo[INFO_PERMISSIONS_KEY];
|
||||
if (outNewPermissions != NULL) {
|
||||
*outNewPermissions = newPermissions;
|
||||
|
||||
Reference in new issue
Block a user