[Pkg-xen-changes] r925 - trunk/xen-common/debian/scripts

Bastian Blank waldi at alioth.debian.org
Wed Oct 26 22:25:34 UTC 2011


Author: waldi
Date: Wed Oct 26 22:25:33 2011
New Revision: 925

Log:
debian/scripts/xen-dir: Check for errors in called script.

Modified:
   trunk/xen-common/debian/scripts/xen-dir

Modified: trunk/xen-common/debian/scripts/xen-dir
==============================================================================
--- trunk/xen-common/debian/scripts/xen-dir	Wed Oct 26 20:46:07 2011	(r924)
+++ trunk/xen-common/debian/scripts/xen-dir	Wed Oct 26 22:25:33 2011	(r925)
@@ -1,7 +1,7 @@
-#!/bin/sh
-set -e
+#!/bin/sh -e
+VERBOSE=1
 
-VERSION=$($(dirname $0)/xen-version -v)
+VERSION=$(. $(dirname $0)/xen-version); RET=$?; [ $RET -eq 0 ] || exit $RET
 
 if [ -d "/usr/lib/xen-$VERSION" ]; then
     echo "/usr/lib/xen-$VERSION"



More information about the Pkg-xen-changes mailing list