From e8439cca08abbb5155b4e300e08f8bf8a5f371ec Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Fri, 23 Jul 2021 17:53:07 -0500 Subject: [PATCH] Remove unused branches from DEB packaging scripts. Branches are unused and emit noise to the console when running commands for which we have no actions. Change-Id: I1f8c49a20bd7f529172721f35d29665cfc8dc6a4 --- runtime/hsa-runtime/DEBIAN/Binary/postinst.in | 3 --- runtime/hsa-runtime/DEBIAN/Binary/prerm.in | 2 -- runtime/hsa-runtime/DEBIAN/Dev/postinst.in | 3 --- runtime/hsa-runtime/DEBIAN/Dev/prerm.in | 2 -- 4 files changed, 10 deletions(-) diff --git a/runtime/hsa-runtime/DEBIAN/Binary/postinst.in b/runtime/hsa-runtime/DEBIAN/Binary/postinst.in index 40c6e00b20..3913b16be5 100644 --- a/runtime/hsa-runtime/DEBIAN/Binary/postinst.in +++ b/runtime/hsa-runtime/DEBIAN/Binary/postinst.in @@ -56,9 +56,6 @@ case "$1" in ( configure ) do_ldconfig ;; - abort-upgrade|abort-remove|abort-deconfigure) - echo "$1" - ;; ( * ) exit 0 ;; diff --git a/runtime/hsa-runtime/DEBIAN/Binary/prerm.in b/runtime/hsa-runtime/DEBIAN/Binary/prerm.in index 3b36703f1b..b995a3e8ae 100644 --- a/runtime/hsa-runtime/DEBIAN/Binary/prerm.in +++ b/runtime/hsa-runtime/DEBIAN/Binary/prerm.in @@ -56,8 +56,6 @@ case "$1" in ( remove ) rm_ldconfig ;; - ( purge ) - ;; ( * ) exit 0 ;; diff --git a/runtime/hsa-runtime/DEBIAN/Dev/postinst.in b/runtime/hsa-runtime/DEBIAN/Dev/postinst.in index 857079609f..c184460873 100644 --- a/runtime/hsa-runtime/DEBIAN/Dev/postinst.in +++ b/runtime/hsa-runtime/DEBIAN/Dev/postinst.in @@ -50,9 +50,6 @@ case "$1" in mkdir -p @CPACK_PACKAGING_INSTALL_PREFIX@/hsa/include ln -sf ../../include/hsa @CPACK_PACKAGING_INSTALL_PREFIX@/hsa/include/hsa ;; - abort-upgrade|abort-remove|abort-deconfigure) - echo "$1" - ;; ( * ) exit 0 ;; diff --git a/runtime/hsa-runtime/DEBIAN/Dev/prerm.in b/runtime/hsa-runtime/DEBIAN/Dev/prerm.in index d652bcd8dd..63e2fd5ef4 100644 --- a/runtime/hsa-runtime/DEBIAN/Dev/prerm.in +++ b/runtime/hsa-runtime/DEBIAN/Dev/prerm.in @@ -49,8 +49,6 @@ case "$1" in # Workaround for CPACK directory symlink handling error. rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/hsa ;; - ( purge ) - ;; ( * ) exit 0 ;;