darcs: The "unless $res" logic got flipped, adapt.