소스 검색

Fix typos and lint

Signed-off-by: Jguer <me@jguer.space>
Jguer 7 년 전
부모
커밋
0216b116f4
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 1
      callbacks.go
  2. 2 2
      install.go

+ 2 - 1
callbacks.go

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

+ 2 - 2
install.go

@@ -303,7 +303,7 @@ nextpkg:
 
 	if len(incompatible) > 0 {
 		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 {
 			fmt.Print("  " + cyan(pkg))
 		}
@@ -631,7 +631,7 @@ func buildInstallPkgBuilds(pkgs []*rpc.Pkg, srcinfos map[string]*gopkg.PKGBUILD,
 
 		if built {
 			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 {
 			args := []string{"-Ccf", "--noconfirm"}