Fix typos and lint

Signed-off-by: Jguer <me@jguer.space>
This commit is contained in:
Jguer 2018-04-16 13:26:15 +01:00
parent cf47746d20
commit 0216b116f4
2 changed files with 4 additions and 3 deletions

View file

@ -3,9 +3,10 @@ package main
import ( import (
"bufio" "bufio"
"fmt" "fmt"
alpm "github.com/jguer/go-alpm"
"os" "os"
"strconv" "strconv"
alpm "github.com/jguer/go-alpm"
) )
func questionCallback(question alpm.QuestionAny) { func questionCallback(question alpm.QuestionAny) {

View file

@ -303,7 +303,7 @@ nextpkg:
if len(incompatible) > 0 { if len(incompatible) > 0 {
fmt.Println() fmt.Println()
fmt.Print(bold(yellow(arrow)) + " The following packages are not compatable with your architecture:") fmt.Print(bold(yellow(arrow)) + " The following packages are not compatible with your architecture:")
for pkg := range incompatible { for pkg := range incompatible {
fmt.Print(" " + cyan(pkg)) fmt.Print(" " + cyan(pkg))
} }
@ -631,7 +631,7 @@ func buildInstallPkgBuilds(pkgs []*rpc.Pkg, srcinfos map[string]*gopkg.PKGBUILD,
if built { if built {
fmt.Println(bold(yellow(arrow)), fmt.Println(bold(yellow(arrow)),
cyan(pkg.Name+"-"+version)+bold(" Already made -- skipping build")) cyan(pkg.Name+"-"+pkg.Version)+bold(" Already made -- skipping build"))
} else { } else {
args := []string{"-Ccf", "--noconfirm"} args := []string{"-Ccf", "--noconfirm"}