summaryrefslogtreecommitdiffstats
path: root/abs/extra/java-common/install_java-runtime-common.sh
blob: f61d1770d101064ef9b23cb557e1b466f52e2607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pre_upgrade() {
  if grep -q '^export _JAVA_AWT_WM_NONREPARENTING=1' /etc/profile.d/jre.sh > /dev/null 2>&1; then
    echo "Variable '_JAVA_AWT_WM_NONREPARENTING' should not be set in /etc/profile.d/jre.sh any more"
    echo "Please declare it in ~/.xinitrc or such"
  fi
}

post_install() {
  echo 'For the complete set of Java binaries to be available in your PATH,'
  echo 'you need to re-login or source /etc/profile.d/jre.sh'
  echo 'Please note that this package does not support forcing JAVA_HOME as former package 'java-common' did'
}

post_upgrade() {
  archlinux-java fix
}