api: controller/dependency: revdep update.

Use the new affected packages argument instead of the reverse
dependencies. The affected packages excludes virtual packages
that have no concrete ancestors, but will also traverse virtual
revdeps, marking them and their concrete ancestors as affected
to ensure the packages that actually depend on the changed package
get rebuilt.

BUG=b:263919459
TEST=run_tests, CQ

Change-Id: Idd0c3e1c1494fd65775c0aae08c436b5e5cdcddd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4553959
Reviewed-by: Navil Perez <navil@google.com>
Tested-by: Alex Klein <saklein@chromium.org>
Commit-Queue: Alex Klein <saklein@chromium.org>
diff --git a/api/controller/dependency.py b/api/controller/dependency.py
index aef73c0..e379073 100644
--- a/api/controller/dependency.py
+++ b/api/controller/dependency.py
@@ -127,7 +127,7 @@
             controller_util.deserialize_package_info(package)
             for package in input_proto.packages
         ],
-        include_rev_dependencies=input_proto.include_rev_deps,
+        include_affected_pkgs=input_proto.include_rev_deps,
     )
     for package in package_deps:
         pkg_info_msg = output_proto.package_deps.add()