mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
parent
79bf1f1056
commit
fac4dec840
@ -731,7 +731,7 @@ func convertVersionList(vl VersionListDeprecated) (VersionList, error) {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
oldPos++
|
oldPos++
|
||||||
if lastVersion.Equal(fv.Version) {
|
if len(newVl.RawVersions) > 0 && lastVersion.Equal(fv.Version) {
|
||||||
newVl.RawVersions[newPos].Devices = append(newVl.RawVersions[newPos].Devices, fv.Device)
|
newVl.RawVersions[newPos].Devices = append(newVl.RawVersions[newPos].Devices, fv.Device)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -747,6 +747,7 @@ func convertVersionList(vl VersionListDeprecated) (VersionList, error) {
|
|||||||
if len(newVl.RawVersions) == 0 {
|
if len(newVl.RawVersions) == 0 {
|
||||||
fv := vl.Versions[oldPos]
|
fv := vl.Versions[oldPos]
|
||||||
newVl.RawVersions = []FileVersion{newFileVersion(fv.Device, fv.Version, true, fv.Deleted)}
|
newVl.RawVersions = []FileVersion{newFileVersion(fv.Device, fv.Version, true, fv.Deleted)}
|
||||||
|
oldPos++
|
||||||
}
|
}
|
||||||
newPos = 0
|
newPos = 0
|
||||||
outer:
|
outer:
|
||||||
|
Loading…
Reference in New Issue
Block a user