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()
|
||||
lw.Enable()
|
||||
})
|
||||
if repostatus.VerifyLocalGoRepo(path) {
|
||||
log.Verbose("newRepo actually exists", path)
|
||||
repo := repostatus.FindPath(path)
|
||||
if repo != nil {
|
||||
log.Verbose("repo is already downloaded", path)
|
||||
tmp.downloadB.SetLabel("downloaded")
|
||||
tmp.downloadB.Disable()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue