This won't be performed when the job has no packages and we won't run
the search query if there are no matches found.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
# Reverse Requires
async def _reverse_requires(self):
+ log.debug("%s: Searching for reverse requires" % self)
+
+ # Skip this if we don't have any packages
+ if not self.packages:
+ return []
+
packages = []
with self.pakfire(include_source=True) as p:
# Rebuild this package!
packages.append(r.uuid)
+ # Skip the query if there are no packages
+ if not packages:
+ return []
+
# Return any builds that generated those packages
return self.backend.builds.get_by_package_uuids(packages)