ghq: update to 0.9.0.

This commit is contained in:
maxice8 2018-11-26 03:41:17 -02:00 committed by maxice8
parent 730d83b898
commit a94f2467a6
2 changed files with 3 additions and 37 deletions

View file

@ -1,34 +0,0 @@
From 344a2a8a0eea18db2f24dec7cae395f1e1621db7 Mon Sep 17 00:00:00 2001
From: Yota Toyama <raviqqe@gmail.com>
Date: Fri, 17 Aug 2018 01:32:04 +0000
Subject: [PATCH] Use new constructor for logger
---
utils/log.go | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git utils/log.go b/utils/log.go
index fa4c4e4..135699b 100644
--- utils/log.go
+++ utils/log.go
@@ -6,7 +6,7 @@ import (
"github.com/motemen/go-colorine"
)
-var logger = &colorine.Logger{
+var logger = colorine.NewLogger(
colorine.Prefixes{
"git": colorine.Verbose,
"hg": colorine.Verbose,
@@ -23,10 +23,7 @@ var logger = &colorine.Logger{
"authorized": colorine.Notice,
"error": colorine.Error,
-
- "": colorine.Info,
- },
-}
+ }, colorine.Info)
func Log(prefix, message string) {
logger.Log(prefix, message)

View file

@ -1,7 +1,7 @@
# Template file for 'ghq' # Template file for 'ghq'
pkgname=ghq pkgname=ghq
version=0.8.0 version=0.9.0
revision=7 revision=1
build_style=go build_style=go
go_import_path=github.com/motemen/ghq go_import_path=github.com/motemen/ghq
go_package="$go_import_path" go_package="$go_import_path"
@ -12,7 +12,7 @@ maintainer="Dominic Monroe <monroef4@googlemail.com>"
license="MIT" license="MIT"
homepage="https://github.com/motemen/ghq" homepage="https://github.com/motemen/ghq"
distfiles="https://github.com/motemen/ghq/archive/v${version}.tar.gz" distfiles="https://github.com/motemen/ghq/archive/v${version}.tar.gz"
checksum=e3df98794a423000676987812ded7dab30367dfbc82a2b7a8d2ebbea12fa81b2 checksum=c5b9ff71ab533a2789da27368603852a3969c5cf8137b12b95e1bcbdaa816cf6
post_install() { post_install() {
vlicense LICENSE vlicense LICENSE