[arch-commits] Commit in ghc/trunk (ghc.install)
Date: Thursday, October 18, 2018 @ 11:45:57 Author: felixonmars Revision: 395906 improve post_upgrade message Modified: ghc/trunk/ghc.install -+ ghc.install |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Modified: ghc.install === --- ghc.install 2018-10-18 11:29:49 UTC (rev 395905) +++ ghc.install 2018-10-18 11:45:57 UTC (rev 395906) @@ -6,7 +6,7 @@ post_upgrade() { 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.' +echo '==> If you have custom packages installed, you will need to reinstall them now.' +echo "==> See /usr/lib/ghc-${2%-*}/package.conf.d/ for a tentative list of affected packages." fi }
[arch-commits] Commit in ghc/trunk (ghc.install)
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 }
[arch-commits] Commit in ghc/trunk (ghc.install)
Date: Saturday, April 4, 2015 @ 07:16:12 Author: td123 Revision: 235425 remove ghc-pkg command from post_upgrade since it is useless at that point Modified: ghc/trunk/ghc.install -+ ghc.install |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: ghc.install === --- ghc.install 2015-04-04 03:28:06 UTC (rev 235424) +++ ghc.install 2015-04-04 05:16:12 UTC (rev 235425) @@ -6,5 +6,5 @@ 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.' + echo '==> See /usr/share/haskell/ for a tentative list of affected packages.' }
[arch-commits] Commit in ghc/trunk (ghc.install)
Date: Wednesday, November 23, 2011 @ 16:18:58 Author: vesa Revision: 143238 FS#18917 Modified: ghc/trunk/ghc.install -+ ghc.install |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: ghc.install === --- ghc.install 2011-11-23 19:36:57 UTC (rev 143237) +++ ghc.install 2011-11-23 21:18:58 UTC (rev 143238) @@ -4,7 +4,7 @@ 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 ) +for unreg in /usr/share/haskell/*/unregister.sh; do "$a"; done cat << EOF ==> Done. EOF
[arch-commits] Commit in ghc/trunk (ghc.install)
Date: Wednesday, November 23, 2011 @ 16:20:46 Author: vesa Revision: 143239 better check that the directory exists Modified: ghc/trunk/ghc.install -+ ghc.install |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: ghc.install === --- ghc.install 2011-11-23 21:18:58 UTC (rev 143238) +++ ghc.install 2011-11-23 21:20:46 UTC (rev 143239) @@ -4,7 +4,7 @@ cat << EOF ==> Unregistering cabalized packages... EOF -for unreg in /usr/share/haskell/*/unregister.sh; do "$a"; done +[ -d /usr/share/haskell ] && for unreg in /usr/share/haskell/*/unregister.sh; do "$a"; done cat << EOF ==> Done. EOF