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

TEST=submit a series of CLS that modifies and then renames an ebuild

Change-Id: I8e673e6cef8f8ff96de1f5f0fa1f1824c48e27d8
Signed-off-by: Brian Norris <>
Reviewed-by: Mike Frysinger <>
1 file changed