Browse Source

gofmt

pull/103/head
Unknown 11 years ago
parent
commit
41d20aa9a5
  1. 10
      README.md
  2. 4
      cmd/get.go

10
README.md

@ -19,7 +19,7 @@ USAGE:
gopm [global options] command [command options] [arguments...]
VERSION:
0.6.0.1209
0.6.0.1211
COMMANDS:
get fetch remote package(s) and dependencies to local repository
@ -29,11 +29,11 @@ COMMANDS:
build link dependencies and go build
install link dependencies and go install
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--noterm disable color output
--version, -v print the version
--help, -h show help
--noterm disable color output
--version print the version
--help, -h show help
```

4
cmd/get.go

@ -351,7 +351,7 @@ func updateByVcs(vcs, dirPath string) error {
log.Error("", "\t"+err.Error())
}
case "hg":
stdout, stderr, err := com.ExecCmd("hg", "pull")
_, stderr, err := com.ExecCmd("hg", "pull")
if err != nil {
log.Error("", "Error occurs when 'hg pull'")
log.Error("", "\t"+err.Error())
@ -360,7 +360,7 @@ func updateByVcs(vcs, dirPath string) error {
log.Error("", "Error: "+stderr)
}
stdout, stderr, err = com.ExecCmd("hg", "up")
_, stderr, err = com.ExecCmd("hg", "up")
if err != nil {
log.Error("", "Error occurs when 'hg up'")
log.Error("", "\t"+err.Error())

Loading…
Cancel
Save