summaryrefslogtreecommitdiff
path: root/testing/ghc/ghc.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-02 00:01:28 +0000
committerroot <root@rshg054.dnsready.net>2012-03-02 00:01:28 +0000
commit9ff97db6951550a28a70b27491a446da9d736176 (patch)
tree482d46078cf0367200908e8e26bb335e54429b5b /testing/ghc/ghc.install
parent6f297b1cf462a11227d811a87124006c55911d63 (diff)
Fri Mar 2 00:01:27 UTC 2012
Diffstat (limited to 'testing/ghc/ghc.install')
-rw-r--r--testing/ghc/ghc.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/ghc/ghc.install b/testing/ghc/ghc.install
new file mode 100644
index 000000000..c0200e4a6
--- /dev/null
+++ b/testing/ghc/ghc.install
@@ -0,0 +1,10 @@
+pre_upgrade() {
+ echo '==> Unregistering cabalized packages...'
+ [[ -d /usr/share/haskell ]] && find /usr/share/haskell -maxdepth 2 -name 'unregister.sh' -exec {} \;
+ echo '==> Done.'
+}
+
+post_upgrade() {
+ echo '==> All cabalized packages need to be reinstalled now.'
+ echo '==> See /usr/share/haskell/ and ghc-pkg list --user for a tentative list of affected packages.'
+}