Skip to content

Commit

Permalink
Merge pull request #727 from Jguer/fix#726
Browse files Browse the repository at this point in the history
Fix -Qu to respect -q. Fixes #726
  • Loading branch information
Jguer authored Sep 24, 2018
2 parents 2826e7d + 2933392 commit dededfd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions print.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,11 @@ func printUpdateList(parser *arguments) error {
if !parser.existsArg("m", "foreign") {
for _, pkg := range repoUp {
if noTargets || targets.get(pkg.Name) {
fmt.Printf("%s %s -> %s\n", bold(pkg.Name), green(pkg.LocalVersion), green(pkg.RemoteVersion))
if parser.existsArg("q", "quiet") {
fmt.Printf("%s\n", pkg.Name)
} else {
fmt.Printf("%s %s -> %s\n", bold(pkg.Name), green(pkg.LocalVersion), green(pkg.RemoteVersion))
}
delete(targets, pkg.Name)
}
}
Expand All @@ -411,7 +415,11 @@ func printUpdateList(parser *arguments) error {
if !parser.existsArg("n", "native") {
for _, pkg := range aurUp {
if noTargets || targets.get(pkg.Name) {
fmt.Printf("%s %s -> %s\n", bold(pkg.Name), green(pkg.LocalVersion), green(pkg.RemoteVersion))
if parser.existsArg("q", "quiet") {
fmt.Printf("%s\n", pkg.Name)
} else {
fmt.Printf("%s %s -> %s\n", bold(pkg.Name), green(pkg.LocalVersion), green(pkg.RemoteVersion))
}
delete(targets, pkg.Name)
}
}
Expand Down

0 comments on commit dededfd

Please sign in to comment.