diff options
| author | Shulhan <ms@kilabit.info> | 2018-09-15 00:36:44 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-09-15 00:36:44 +0700 |
| commit | e74b4be7c675849e04d6929a2017cb08e63afd69 (patch) | |
| tree | a1efba67a33e5d1760970c912c755431a0bd73cd | |
| parent | f538240dc38b7eb477ba15d99b46f8d1a40c0bca (diff) | |
| download | beku-e74b4be7c675849e04d6929a2017cb08e63afd69.tar.xz | |
package: rename Fetch to FetchLatestVersion
| -rw-r--r-- | env.go | 4 | ||||
| -rw-r--r-- | package.go | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -1049,7 +1049,7 @@ func (env *Env) install(pkg *Package) (ok bool, err error) { } func (env *Env) update(curPkg, newPkg *Package) (ok bool, err error) { - err = curPkg.Fetch() + err = curPkg.FetchLatestVersion() if err != nil { return } @@ -1271,7 +1271,7 @@ func (env *Env) SyncAll() (err error) { fmt.Printf("[ENV] SyncAll %s >>> Current version is %s\n", pkg.ImportPath, pkg.Version) - err = pkg.Fetch() + err = pkg.FetchLatestVersion() if err != nil { return } @@ -112,10 +112,10 @@ func (pkg *Package) CompareVersion(newPkg *Package) (err error) { } // -// Fetch will try to update the package and get the latest version (tag or +// FetchLatestVersion will try to update the package and get the latest version (tag or // commit). // -func (pkg *Package) Fetch() (err error) { +func (pkg *Package) FetchLatestVersion() (err error) { switch pkg.vcsMode { case VCSModeGit: err = git.FetchAll(pkg.FullPath) |
