Break scan commit out of scanPackage* methods

In preparation to have atomic install scan and commit results as
separate steps, we're modifying all scanPackage* and usages of them to
deal directly with a scan result and check for success before committing
the result(s).

Bug: 109941548
Change-Id: Ic155dfa0b0e3f84f77387378d60847a617b562af
1 file changed