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,9 +16,13 @@ func GetTorrentVersion() string {
return "" return ""
} }
for _, dep := range bi.Deps { for _, dep := range bi.Deps {
if dep.Path == "github.com/anacrolix/torrent" || dep.Path == "github.com/tsynik/torrent" { if dep.Path == "github.com/anacrolix/torrent" {
if dep.Replace != nil {
return dep.Replace.Version
} else {
return dep.Version return dep.Version
} }
} }
}
return "" return ""
} }