Found a subtle bug here: `entry`'s own properties aren't updated from `result.metadata`; in particular, `entry.metadata.version` is still the old version number (which messes up our reporting in the UI when we tell the user what version it's updated to).