=================================================================== RCS file: /cvs/openbsd/update_openbsd/update_openbsd,v retrieving revision 1.25 retrieving revision 1.27 diff -u -r1.25 -r1.27 --- openbsd/update_openbsd/update_openbsd 2009/06/13 17:34:46 1.25 +++ openbsd/update_openbsd/update_openbsd 2009/12/04 04:26:36 1.27 @@ -1,5 +1,5 @@ #!/bin/sh -# $RedRiver: update_openbsd,v 1.24 2009/05/29 21:47:37 andrew Exp $ +# $RedRiver: update_openbsd,v 1.26 2009/10/26 19:52:23 andrew Exp $ installed_sets() { local misc=/usr/share/doc/README @@ -326,7 +326,7 @@ echo ERROR: Could not copy new $_b kernel! >&2 exit 1 fi - if [ X"${_true_bsd}" == X"${_b}" ]; then + if [ X"${_true_bsd}" == X"/${_b}" ]; then _installed_new_bsd=1 fi fi @@ -459,7 +459,9 @@ echo ERROR: No upgrade sets found! >&2 else echo '### RUNNING SYSMERGE ###' - _args="-a $_args" + if sysmerge 2>&1 | grep -- -a >/dev/null; then + _args="-a $_args" + fi $SUDO $SYSMERGE $_args fi fi