diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2012-11-19 21:27:56 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2012-11-19 21:27:56 +0000 |
commit | b6c84e336737dbd28e2cc36a9b513cae940ec4d9 (patch) | |
tree | 38ccacbe1096eb1087e964847ec647f96c023010 /eclass/haskell-cabal.eclass | |
parent | arm stable, bug #429484 (diff) | |
download | historical-b6c84e336737dbd28e2cc36a9b513cae940ec4d9.tar.gz historical-b6c84e336737dbd28e2cc36a9b513cae940ec4d9.tar.bz2 historical-b6c84e336737dbd28e2cc36a9b513cae940ec4d9.zip |
Fix error case to be more descriptive. Move 'einfo' lower to avoid empty output.
Diffstat (limited to 'eclass/haskell-cabal.eclass')
-rw-r--r-- | eclass/haskell-cabal.eclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass index 861936fa42c5..064e4b593589 100644 --- a/eclass/haskell-cabal.eclass +++ b/eclass/haskell-cabal.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/haskell-cabal.eclass,v 1.36 2012/11/19 20:35:16 slyfox Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.37 2012/11/19 21:27:56 slyfox Exp $ # @ECLASS: haskell-cabal.eclass # @MAINTAINER: @@ -580,11 +580,12 @@ cabal_chdeps() { while :; do from_pat=$1 to_str=$2 - einfo "CHDEP: '${from_pat}' -> '${to_str}'" [[ -n ${from_pat} ]] || break [[ -n ${to_str} ]] || die "'${from_str}' does not have 'to' part" + einfo "CHDEP: '${from_pat}' -> '${to_str}'" + # escape pattern-like symbols from_pat=${from_pat//\*/\\*} from_pat=${from_pat//\[/\\[} @@ -597,7 +598,7 @@ cabal_chdeps() { diff -u "${T}/${cf}".{pre,post} fi - [[ "${orig_c}" == "${new_c}" ]] && die "no trigger for '${from_ss}'" + [[ "${orig_c}" == "${new_c}" ]] && die "no trigger for '${from_pat}'" orig_c=${new_c} shift shift |