[23430] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r23083 - trunk/debathena/third/openafs

daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Tue Jul 15 12:40:37 2008

Date: Tue, 15 Jul 2008 12:40:08 -0400 (EDT)
From: ghudson@MIT.EDU
Message-Id: <200807151640.MAA08430@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: ghudson
Date: 2008-07-15 12:40:07 -0400 (Tue, 15 Jul 2008)
New Revision: 23083

Modified:
   trunk/debathena/third/openafs/debathenify-openafs
Log:
In debathenify-openafs, add a few fail-out clauses at key points since
the script does not use "set -e".


Modified: trunk/debathena/third/openafs/debathenify-openafs
===================================================================
--- trunk/debathena/third/openafs/debathenify-openafs	2008-07-15 02:59:25 UTC (rev 23082)
+++ trunk/debathena/third/openafs/debathenify-openafs	2008-07-15 16:40:07 UTC (rev 23083)
@@ -34,7 +34,7 @@
   esac
 done
 
-sid=$(schroot -b -c "$chroot")
+sid=$(schroot -b -c "$chroot") || exit 1
 trap 'schroot -e -c "$sid"' EXIT
 sch() { schroot -r -c "$sid" -- "$@"; }           # Run in the chroot
 schq() { schroot -q -r -c "$sid" -- "$@"; }       # Run in the chroot quietly
@@ -227,7 +227,8 @@
  there is a corresponding openafs-modules Debathena package available.
 EOF
     schr apt-get -y install equivs
-    (cd "meta/$dist_arch" && sch equivs-build -a "$arch" "$afs_mpkg.equivs")
+    (cd "meta/$dist_arch" && sch equivs-build -a "$arch" "$afs_mpkg.equivs") \
+      || exit 1
   fi
 
   if [ yes = "$do_upload" ]; then


home help back first fref pref prev next nref lref last post