On Sat, Apr 29, 2006 at 03:55:50PM -0400, David Nusinow wrote: > On Sat, Apr 29, 2006 at 03:48:11PM -0400, X Strike Force SVN Repository Admin > wrote: > > Log: > > * Prevent the xserver-xorg config from failing during migration of > > zaxismapping and emulate3buttons questions when they don't exist. Thanks > > Rodney Gordon II, Adam Borowski. Thanks to Steven Brown for a fix. > > (closes: #365282) > > Modified: trunk/debian/xorg/debian/xserver-xorg.config.in > > =================================================================== > > --- trunk/debian/xorg/debian/xserver-xorg.config.in 2006-04-29 19:29:09 UTC > > (rev 1999) > > +++ trunk/debian/xorg/debian/xserver-xorg.config.in 2006-04-29 19:48:09 UTC > > (rev 2000) > > @@ -460,7 +460,7 @@ > > # migrate from old select-type templates > > for TEMPLATE in xserver-xorg/config/inputdevice/mouse/emulate3buttons \ > > xserver-xorg/config/inputdevice/mouse/zaxismapping; do > > - db_get "$TEMPLATE" > > + db_get "$TEMPLATE" || continue > > if [ "$RET" = "Yes" ]; then > > db_set $TEMPLATE "true" > > elif [ "$RET" = "No" ]; then > > This'll work, right? Someone with more shell experience than me?
Presumably: [EMAIL PROTECTED]:~% set -e && printf '#!/bin/sh\n\ntest "$1" = "bar" || exit 10\necho $1' > foo.sh && chmod +x foo.sh && for i in foo bar baz; do ./foo.sh $i || continue; echo success; done && set +e bar success Cheers, Daniel
signature.asc
Description: Digital signature