improved checks for aleady scan'd repos
This commit is contained in:
parent
1bdf8e2f0e
commit
76efd35e3e
|
@ -196,8 +196,9 @@ func (s *section) add(path string) {
|
||||||
tmp.doDownload()
|
tmp.doDownload()
|
||||||
lw.Enable()
|
lw.Enable()
|
||||||
})
|
})
|
||||||
if repostatus.VerifyLocalGoRepo(path) {
|
repo := repostatus.FindPath(path)
|
||||||
log.Verbose("newRepo actually exists", path)
|
if repo != nil {
|
||||||
|
log.Verbose("repo is already downloaded", path)
|
||||||
tmp.downloadB.SetLabel("downloaded")
|
tmp.downloadB.SetLabel("downloaded")
|
||||||
tmp.downloadB.Disable()
|
tmp.downloadB.Disable()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue