revert dir rename

This commit is contained in:
Shawn Smith
2021-11-16 14:12:24 +09:00
parent 083d779f86
commit 9af34671bd
2 changed files with 8 additions and 2 deletions

View File

@@ -85,5 +85,10 @@ func ProxyDownload(path string) (string, error) {
return "", err
}
return mv.Version, os.Rename(filepath.Join(reposDir, lowerPath+"@"+mv.Version), filepath.Join(reposDir, path))
err = os.Rename(filepath.Join(reposDir, path+"@"+mv.Version), filepath.Join(reposDir, path))
if err != nil {
return "", err
}
return mv.Version, nil
}

View File

@@ -98,7 +98,8 @@ func newChecksResp(db *badger.DB, repo string, forceRefresh bool) (checksResp, e
ver, err := download.ProxyDownload(repo)
if err != nil {
return checksResp{}, fmt.Errorf("could not download repo: %v", err)
log.Println("ERROR:", err)
// return checksResp{}, fmt.Errorf("could not download repo: %v", err)
}
// repo = repoRoot.Root