summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-16 11:40:44 -0600
committerJeff Carr <[email protected]>2024-02-16 11:40:44 -0600
commit76efd35e3ef97e8635a02b849b89e4c704809f75 (patch)
treea7bbfccfb8fc2df2ac87b31464dfa3dca9b84edf
parent1bdf8e2f0e10b0dbb8413d855d67cf4cb57b1aaa (diff)
improved checks for aleady scan'd repos
-rw-r--r--listWindow.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/listWindow.go b/listWindow.go
index 3b896e0..55e5ed9 100644
--- a/listWindow.go
+++ b/listWindow.go
@@ -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()
}