diff options
author | 2012-10-19 03:35:15 +0000 | |
---|---|---|
committer | 2012-10-19 03:35:15 +0000 | |
commit | a9753809d2b9c0ebd2ad331d504a6e0d8826bebd (patch) | |
tree | b018cba785f14d3bbaec58ac47ac48f31219266e /eclass | |
parent | Fixing binpkg behaviour (diff) | |
download | gentoo-2-a9753809d2b9c0ebd2ad331d504a6e0d8826bebd.tar.gz gentoo-2-a9753809d2b9c0ebd2ad331d504a6e0d8826bebd.tar.bz2 gentoo-2-a9753809d2b9c0ebd2ad331d504a6e0d8826bebd.zip |
Fixing units
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 5 | ||||
-rw-r--r-- | eclass/check-reqs.eclass | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index 2349d90332fd..74f228313839 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for eclass directory # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.452 2012/10/19 02:44:21 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.453 2012/10/19 03:35:15 patrick Exp $ + + 19 Oct 2012; Patrick Lauer <patrick@gentoo.org> check-reqs.eclass: + Fixing units 19 Oct 2012; Patrick Lauer <patrick@gentoo.org> check-reqs.eclass: Fixing binpkg behaviour diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass index f7644393df18..0ad246e8dc45 100644 --- a/eclass/check-reqs.eclass +++ b/eclass/check-reqs.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/check-reqs.eclass,v 1.12 2012/10/19 02:44:21 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/check-reqs.eclass,v 1.13 2012/10/19 03:35:15 patrick Exp $ # @ECLASS: check-reqs.eclass # @MAINTAINER: @@ -190,7 +190,7 @@ check-reqs_get_number() { # Backcompat. if [[ ${size} == ${1} ]]; then ewarn "QA: Package does not specify unit for the size check" - ewarn "QA: Assuming mebibytes." + ewarn "QA: Assuming megabytes." ewarn "QA: File bug against the package. It should specify the unit." fi @@ -209,9 +209,9 @@ check-reqs_get_unit() { local unit=${1:(-1)} case ${unit} in - G) echo "gibibytes" ;; - [M0-9]) echo "mebibytes" ;; - T) echo "tebibytes" ;; + G) echo "gigabytes" ;; + [M0-9]) echo "megabytes" ;; + T) echo "terabytes" ;; *) die "${FUNCNAME}: Unknown unit: ${unit}" ;; |