[arch-commits] Commit in ghc/trunk (ghc.install)

Felix Yan felixonmars at archlinux.org
Thu Sep 21 17:19:37 UTC 2017


    Date: Thursday, September 21, 2017 @ 17:19:36
  Author: felixonmars
Revision: 259310

upgpkg: ghc 8.2.1-2

- move .hi files to -static subpackage
- fix install scriptlet so it doesn't unregister all packages on pkgrel updates

Modified:
  ghc/trunk/ghc.install

-------------+
 ghc.install |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

Modified: ghc.install
===================================================================
--- ghc.install	2017-09-21 17:15:04 UTC (rev 259309)
+++ ghc.install	2017-09-21 17:19:36 UTC (rev 259310)
@@ -1,10 +1,12 @@
 pre_upgrade() {
-  echo '==> Unregistering cabalized packages...'
-  [[ -d /usr/share/haskell ]] && find /usr/share/haskell -maxdepth 2 -name 'unregister.sh' -exec {} \;
-  echo '==> Done.'
+  if [[ ${1%-*} != ${2%-*} ]]; then
+    [[ -d /usr/share/haskell ]] && find /usr/share/haskell -maxdepth 2 -name 'unregister.sh' -exec {} \;
+  fi
 }
 
 post_upgrade() {
-  echo '==> All cabalized packages need to be reinstalled now.'
-  echo '==> See /usr/share/haskell/ for a tentative list of affected packages.'
+  if [[ ${1%-*} != ${2%-*} ]]; then
+    echo '==> All cabalized packages need to be reinstalled now.'
+    echo '==> See /usr/share/haskell/ for a tentative list of affected packages.'
+  fi
 }



More information about the arch-commits mailing list