Browse Source

Clean code

pull/103/head
Unknown 11 years ago
parent
commit
8067b8ec45
  1. 2
      README.md
  2. 2
      cmd/gopath.go
  3. 2
      gopm.go

2
README.md

@ -18,7 +18,7 @@ USAGE:
gopm [global options] command [command options] [arguments...] gopm [global options] command [command options] [arguments...]
VERSION: VERSION:
0.6.3.0311 0.6.3.0313
COMMANDS: COMMANDS:
get fetch remote package(s) and dependencies to local repository get fetch remote package(s) and dependencies to local repository

2
cmd/gopath.go

@ -257,7 +257,7 @@ func genNewGoPath(ctx *cli.Context, isTest bool) {
continue continue
} }
if !isExistP && ((len(pkg.Value) > 0 || ctx.Bool("remote")) || if !isExistP && (len(pkg.Value) > 0 || ctx.Bool("remote") ||
!com.IsDir(filepath.Join(installGopath, pkg.ImportPath))) { !com.IsDir(filepath.Join(installGopath, pkg.ImportPath))) {
log.Log("Linking %s", name+suf) log.Log("Linking %s", name+suf)
err = autoLink(oldPath, newPath) err = autoLink(oldPath, newPath)

2
gopm.go

@ -29,7 +29,7 @@ import (
// Test that go1.1 tag above is included in builds. main.go refers to this definition. // Test that go1.1 tag above is included in builds. main.go refers to this definition.
const go11tag = true const go11tag = true
const APP_VER = "0.6.3.0312" const APP_VER = "0.6.3.0313"
// //cmd.CmdSearch, // //cmd.CmdSearch,
// cmdClean, // cmdClean,

Loading…
Cancel
Save