From 50710a784c4f5ada1f39fc4716c3cbbf8783b59d Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 20 Mar 2017 15:32:20 -0400 Subject: development/apache-ivy: Fix and install doinst.sh. Signed-off-by: B. Watson Signed-off-by: David Spencer --- development/apache-ivy/doinst.sh | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'development/apache-ivy/doinst.sh') diff --git a/development/apache-ivy/doinst.sh b/development/apache-ivy/doinst.sh index 1f6d45574c78..8e2d0782647e 100644 --- a/development/apache-ivy/doinst.sh +++ b/development/apache-ivy/doinst.sh @@ -1,12 +1,5 @@ -postinstall scriptlet (using /bin/sh): -rm -f /usr/share/java/ivy.jar -ln -s /usr/share/java/ivy-1.4.1.jar /usr/share/java/ivy.jar -postuninstall scriptlet (using /bin/sh): -if [ "$1" = "0" ]; then - # Remove the old link - rm -f /usr/share/java/ivy.jar - - # Put back a new link. It's OK if this fails, that just means there - # is no other version of the package installed - ln -fs `ls -tr /usr/share/java/ivy-* 2>/dev/null|tail -n 1` /usr/share/java/ivy.jar || true -fi +# 20170320 bkw: got rid of dead code (if [ "$1" = "0" ]... would never be +# true in a doinst), got rid of absolute paths, and there were comments +# missing their # so they were executed as code... +rm -f usr/share/java/ivy.jar +ln -s ivy-1.4.1.jar usr/share/java/ivy.jar -- cgit v1.2.3