From 00a83b8c6ba207c7460a0f3b98bbc8f09a93f6a0 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Thu, 27 Apr 2017 21:03:12 +0100 Subject: [PATCH] Document why postinst should succeed if the FPGA download fails --- debian/bladerf-fpga-hostedx115.postinst | 2 ++ debian/bladerf-fpga-hostedx40.postinst | 2 ++ 2 files changed, 4 insertions(+) diff --git a/debian/bladerf-fpga-hostedx115.postinst b/debian/bladerf-fpga-hostedx115.postinst index e182c38d..b2e9ccec 100644 --- a/debian/bladerf-fpga-hostedx115.postinst +++ b/debian/bladerf-fpga-hostedx115.postinst @@ -40,6 +40,8 @@ if [ ! -s ${DATAFILE} ] || ! checkfile ${DATAFILE}; then EOMSG + # exit successfully, as otherwise the package is left + # half-configured and the surrounding install/upgrade fails exit 0 fi fi diff --git a/debian/bladerf-fpga-hostedx40.postinst b/debian/bladerf-fpga-hostedx40.postinst index 3ea8acfa..5c4ed567 100644 --- a/debian/bladerf-fpga-hostedx40.postinst +++ b/debian/bladerf-fpga-hostedx40.postinst @@ -40,6 +40,8 @@ if [ ! -s ${DATAFILE} ] || ! checkfile ${DATAFILE}; then EOMSG + # exit successfully, as otherwise the package is left + # half-configured and the surrounding install/upgrade fails exit 0 fi fi