]> Cypherpunks.ru repositories - gocheese.git/blobdiff - refresh.go
Refactor -help, remove -root
[gocheese.git] / refresh.go
index 67efe578d1c53891c42204c21c64fae11d63a488..b97d2becfac6b71ee10c8466179f496533211910 100644 (file)
@@ -85,11 +85,11 @@ func refreshDir(
        pkgName, filenameGet string,
        gpgUpdate bool,
 ) bool {
-       if _, err := os.Stat(filepath.Join(*Root, pkgName, InternalFlag)); err == nil {
+       if _, err := os.Stat(filepath.Join(Root, pkgName, InternalFlag)); err == nil {
                return true
        }
        c := http.Client{Transport: &PyPIHTTPTransport}
-       dirPath := filepath.Join(*Root, pkgName)
+       dirPath := filepath.Join(Root, pkgName)
        now := time.Now()
 
        var allReleases map[string][]*PkgReleaseInfo