Browse Source

Bug fixed with gopmgile

pull/103/head
Unknown 11 years ago
parent
commit
4aae955ec6
  1. 8
      .gopmfile
  2. 2
      cmd/gopath.go
  3. 2
      gopm.go

8
.gopmfile

@ -2,8 +2,8 @@
path=github.com/gpmgo/gopm path=github.com/gpmgo/gopm
[deps] [deps]
github.com/codegangsta/cli= github.com/codegangsta/cli=
github.com/Unknwon/com= github.com/Unknwon/com=
github.com/Unknwon/goconfig= github.com/Unknwon/goconfig=
github.com/aybabtme/color= github.com/aybabtme/color=

2
cmd/gopath.go

@ -91,7 +91,7 @@ func getChildPkgs(ctx *cli.Context, cpath string, ppkg *doc.Pkg, cachePkgs map[s
newPath = filepath.Join(installGopath, pkgPath) newPath = filepath.Join(installGopath, pkgPath)
} }
if pkgName != "" && strings.HasPrefix(pkg.ImportPath, pkgName) { if pkgName != "" && strings.HasPrefix(pkg.ImportPath, pkgName) {
newPath = filepath.Join(curPath, pkgPath) newPath = filepath.Join(curPath, strings.TrimPrefix(pkg.ImportPath, pkgName))
} else { } else {
if !com.IsExist(newPath) { if !com.IsExist(newPath) {
node := doc.NewNode(pkg.ImportPath, pkg.ImportPath, node := doc.NewNode(pkg.ImportPath, pkg.ImportPath,

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.0.1206" const APP_VER = "0.6.0.1206.1"
// //cmd.CmdSearch, // //cmd.CmdSearch,
// cmdClean, // cmdClean,

Loading…
Cancel
Save