From: Ben Pfaff Date: Fri, 16 Mar 2012 21:18:05 +0000 (-0700) Subject: debian: Use a different way to avoid failing install without kernel module. X-Git-Tag: sliver-openvswitch-0.1-1~186 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8a5b3cfd91841c97fbc8a003857cacbd602646ed;hp=8a5b3cfd91841c97fbc8a003857cacbd602646ed;p=sliver-openvswitch.git debian: Use a different way to avoid failing install without kernel module. The dh_installinit --error-handler option makes a lot of sense, but after playing with it for a while I could not figure out a nice way to use it only for openvswitch-switch without either duplicating the dh_installinit fragments in postinst and prerm (the actual bug that was reported) or omitting them for some package. Also, we forgot to write the error handler function for the prerm. This commit switches to a different way to avoid failing the install when the kernel module is not available, without using --error-handler. CC: 663051@bugs.debian.org Reported-by: Thomas Goirand Reviewed-by: Simon Horman Signed-off-by: Ben Pfaff ---