fix OE torrent version

This commit is contained in:
nikk gitanes
2023-03-12 13:03:27 +03:00
parent ec54d53bc4
commit da0b11de87

View File

@@ -16,8 +16,12 @@ func GetTorrentVersion() string {
return ""
}
for _, dep := range bi.Deps {
if dep.Path == "github.com/anacrolix/torrent" || dep.Path == "github.com/tsynik/torrent" {
return dep.Version
if dep.Path == "github.com/anacrolix/torrent" {
if dep.Replace != nil {
return dep.Replace.Version
} else {
return dep.Version
}
}
}
return ""