From: | "Lennart Kolmodin (kolmodin)" <kolmodin@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in eclass: ghc-package.eclass |
Date: | Thu, 24 Jun 2010 13:50:15 |
Message-Id: | 20100624135010.561502CF48@corvid.gentoo.org |
1 | kolmodin 10/06/24 13:50:10 |
2 | |
3 | Modified: ghc-package.eclass |
4 | Log: |
5 | ghc-package.eclass: Fix for GHC 6.12.3 when having broken packages in your environment. |
6 | |
7 | Revision Changes Path |
8 | 1.28 eclass/ghc-package.eclass |
9 | |
10 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ghc-package.eclass?rev=1.28&view=markup |
11 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ghc-package.eclass?rev=1.28&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ghc-package.eclass?r1=1.27&r2=1.28 |
13 | |
14 | Index: ghc-package.eclass |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v |
17 | retrieving revision 1.27 |
18 | retrieving revision 1.28 |
19 | diff -u -r1.27 -r1.28 |
20 | --- ghc-package.eclass 23 Mar 2009 20:06:19 -0000 1.27 |
21 | +++ ghc-package.eclass 24 Jun 2010 13:50:10 -0000 1.28 |
22 | @@ -1,6 +1,6 @@ |
23 | # Copyright 1999-2004 Gentoo Foundation |
24 | # Distributed under the terms of the GNU General Public License v2 |
25 | -# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.27 2009/03/23 20:06:19 kolmodin Exp $ |
26 | +# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.28 2010/06/24 13:50:10 kolmodin Exp $ |
27 | # |
28 | # Author: Andres Loeh <kosmikus@g.o> |
29 | # Maintained by: Haskell herd <haskell@g.o> |
30 | @@ -295,9 +295,13 @@ |
31 | ghc-listpkg() { |
32 | local ghcpkgcall |
33 | local i |
34 | + local extra_flags |
35 | + if version_is_at_least '6.12.3' "$(ghc-version)"; then |
36 | + extra_flags="${extra_flags} -v0" |
37 | + fi |
38 | for i in $*; do |
39 | if ghc-cabal; then |
40 | - echo $($(ghc-getghcpkg) list -f "${i}") \ |
41 | + echo $($(ghc-getghcpkg) list ${extra_flags} -f "${i}") \ |
42 | | sed \ |
43 | -e "s|^.*${i}:\([^:]*\).*$|\1|" \ |
44 | -e "s|/.*$||" \ |