licensing: don't use the current disk contents for checking ebuilds

A series of commits that both modifies and renames/deletes an ebuild
will result in a false error like this:

 * No LICENSE found in the ebuild.

because by the time the license check occurs on the "affected files",
the affected ebuild no longer exists under that name. Use
_get_affected_files() to get the contents at the correct point in
history.

BUG=none
TEST=submit a series of CLS that modifies and then renames an ebuild
CQ-DEPEND=I52e8b4a501b47aa57b17f0457136d7be62913af6

Change-Id: I8e673e6cef8f8ff96de1f5f0fa1f1824c48e27d8
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/327687
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed