[ovs-dev] [PATCH 5/6] Debian: set -e in brcompat postinst
Simon Horman
horms at verge.net.au
Wed Aug 24 01:40:55 UTC 2011
As reported by lintian:
The maintainer script doesn't seem to set the -e flag which ensures
that the script's execution is aborted when any executed command
fails.
Refer to Debian Policy Manual section 10.4 (Scripts) for details.
---
debian/openvswitch-brcompat.postinst | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/debian/openvswitch-brcompat.postinst b/debian/openvswitch-brcompat.postinst
index 8113e31..12e3b05 100755
--- a/debian/openvswitch-brcompat.postinst
+++ b/debian/openvswitch-brcompat.postinst
@@ -1,5 +1,7 @@
#!/bin/sh
+set -e
+
# If openvswitch-switch is installed, and then later openvswitch-brcompat is
# installed, make sure that ovs-brcompatd starts.
if test X"$1" = Xconfigure && \
--
1.7.5.4
More information about the dev
mailing list