licensechecker: update to 1.2.0.

This commit is contained in:
maxice8 2018-02-14 23:53:47 -02:00 committed by Toyam Cox
parent f12a093291
commit 21f06ba5c6
2 changed files with 2 additions and 29 deletions

View File

@ -1,27 +0,0 @@
diff --git parsers/guesser.go parsers/guesser.go
index 1f55738..eeac0fa 100644
--- parsers/guesser.go
+++ parsers/guesser.go
@@ -299,7 +299,7 @@ func processFile(directory string, file string, rootLicenses []LicenseMatch) Fil
Md5Hash: getMd5Hash(content),
Sha1Hash: getSha1Hash(content),
Sha256Hash: getSha256Hash(content),
- BytesHuman: bytesToHuman(len(content)),
+ BytesHuman: bytesToHuman(int64(len(content))),
Bytes: len(content)}
return fileResult
diff --git parsers/helpers.go parsers/helpers.go
--- parsers/helpers.go
+++ parsers/helpers.go
@@ -80,9 +80,9 @@ func licenceListHasLicense(license LicenseMatch, licenseList []LicenseMatch) boo
// Apache-2.0 is compatible with GPL-3.0-only
// See https://apache.org/licenses/GPL-compatibility.html
// SPDX-License-Identifier: Apache-2.0
-func bytesToHuman(bytes int) string {
+func bytesToHuman(bytes int64) string {
const TERABYTE = 1099511627776
const GIGABYTE = 1073741824
const MEGABYTE = 1048576
const KILOBYTE = 1024

View File

@ -1,6 +1,6 @@
# Template file for 'licensechecker' # Template file for 'licensechecker'
pkgname=licensechecker pkgname=licensechecker
version=1.1.1 version=1.2.0
revision=1 revision=1
wrksrc="lc-${version}" wrksrc="lc-${version}"
build_style=go build_style=go
@ -11,7 +11,7 @@ maintainer="Michael Gehring <mg@ebfe.org>"
license="GPL-3" license="GPL-3"
homepage="https://github.com/boyter/lc" homepage="https://github.com/boyter/lc"
distfiles="https://github.com/boyter/lc/archive/v${version}.tar.gz" distfiles="https://github.com/boyter/lc/archive/v${version}.tar.gz"
checksum=19429fa63036eb20d4f54586674ba3a73fc224c978587b87e8e7e4c1e9ec8c46 checksum=e007af5f512f07c3b4e001045eb1583da5a9a9534c9c4e625ef3efb6c38cbe01
conflicts="mono>=0" # /usr/bin/lc conflicts="mono>=0" # /usr/bin/lc