[Piuparts-commits] [piuparts] 08/10: ignore some module_build_error_issue on upgrades

Holger Levsen holger at layer-acht.org
Sun May 1 11:55:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 5d7a666c9236c4c6be3722893b781c62f32715a3
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sun May 1 10:27:54 2016 +0200

    ignore some module_build_error_issue on upgrades
    
    by not testing dicontinued packages, the old package version most
    likely does not support a newer kernel
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
 custom-scripts/scripts/pre_install_extras | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/custom-scripts/scripts/pre_install_extras b/custom-scripts/scripts/pre_install_extras
index 8a2663b..1324fe8 100755
--- a/custom-scripts/scripts/pre_install_extras
+++ b/custom-scripts/scripts/pre_install_extras
@@ -9,7 +9,6 @@ if [ "$PIUPARTS_PHASE" = "install" ]; then
 
     case ${PIUPARTS_OBJECTS%%=*} in
 	*dkms)
-		log_debug
 		# Install kernel headers, so that dkms tries to build a module
 		HEADERS=linux-headers
 		FLAVOR=unknown
@@ -28,7 +27,15 @@ if [ "$PIUPARTS_PHASE" = "install" ]; then
 				FLAVOR=$FLAVOR_i386
 				;;
 		esac
-		apt-get -y install $HEADERS-$FLAVOR
+		case ${PIUPARTS_OBJECTS} in
+			*=None)
+				# do not test discontinued packages - they won't support newer kernels
+				;;
+			*)
+				log_debug
+				apt-get -y install $HEADERS-$FLAVOR
+				;;
+		esac
 		;;
     esac
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list