From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/ghc/ghc.install | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 extra/ghc/ghc.install (limited to 'extra/ghc/ghc.install') diff --git a/extra/ghc/ghc.install b/extra/ghc/ghc.install new file mode 100644 index 000000000..7d56083bc --- /dev/null +++ b/extra/ghc/ghc.install @@ -0,0 +1,19 @@ +pkgname=ghc + +pre_upgrade() { + cat << EOF + ==> Unregistering cabalized packages... +EOF + cd /usr/share/haskell/ && (for a in *; do ghc-pkg unregister --force $a &> /dev/null; done; cd - > /dev/null ) + cat << EOF + ==> Done. +EOF + +} + +post_upgrade() { + cat << EOF + ==> All cabalized and yaourt-installed packages need to be reinstalled now. + ==> See /usr/share/haskell/ and ghc-pkg list --user for a tentative list of affected packages. +EOF +} -- cgit v1.2.3-54-g00ecf