Browse Source

Bug fixed

pull/103/head
Unknown 11 years ago
parent
commit
5635890130
  1. 2
      cmd/gopath.go
  2. 11
      log/log_windows.go

2
cmd/gopath.go

@ -164,7 +164,7 @@ func execCmd(gopath, curPath string, args ...string) error {
log.Log("Setting GOPATH to %s", gopath)
sep := ":"
if runtime.GOOS == "windos" {
if runtime.GOOS == "windows" {
sep = ";"
}
err = os.Setenv("GOPATH", gopath+sep+oldGoPath)

11
log/log_windows.go

@ -33,13 +33,11 @@ func Fatal(hl, msg string) {
}
func Log(format string, args ...interface{}) {
fmt.Printf("gopm INFO %s\n",
fmt.Sprintf(format, args...))
fmt.Printf("gopm INFO %s\n", fmt.Sprintf(format, args...))
}
func Trace(format string, args ...interface{}) {
fmt.Printf("gopm TRAC %s\n",
fmt.Sprintf(format, args...))
fmt.Printf("gopm TRAC %s\n", fmt.Sprintf(format, args...))
}
func Success(title, hl, msg string) {
@ -55,3 +53,8 @@ func Message(hl, msg string) {
}
fmt.Printf("gopm MSG!%s %s\n", hl, msg)
}
func Help(format string, args ...interface{}) {
fmt.Printf("gopm HELP %s\n", fmt.Sprintf(format, args...))
os.Exit(2)
}

Loading…
Cancel
Save