improved checks for aleady scan'd repos

This commit is contained in:
Jeff Carr 2024-02-16 11:40:44 -06:00
parent 1bdf8e2f0e
commit 76efd35e3e
1 changed files with 3 additions and 2 deletions

View File

@ -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()
} }