From 40e6de3ce1e95b110165dc4516bedaef642bce39 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Aug 30 2022 23:20:17 +0000 Subject: critpath.py: simplify package count calculation Previous commit plus this one remove any possibility pkgs could wind up as None, so no need to worry about that any more. Signed-off-by: Adam Williamson --- diff --git a/scripts/critpath.py b/scripts/critpath.py index 0ecb798..c4ecc5e 100755 --- a/scripts/critpath.py +++ b/scripts/critpath.py @@ -163,13 +163,8 @@ def main(): if "/mnt/koji/compose/" not in args.url: url = args.alturl print(f"Expanding critical path for {arch}") - pkgs = None - pkgs = expand_dnf_critpath(release, url, arch) - if pkgs is None: - package_count = 0 - else: - package_count = len(pkgs) + package_count = len(pkgs) print(f"{package_count} packages for {arch}")