Re: [jenkins-ci PATCH v3 08/10] lcitool: refactor logic for building package list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2019-02-13 at 19:03 +0000, Daniel P. Berrangé wrote:
[...]
> +            pkgname = temp[item]
> +            if pkgname is None:
> +                continue
> +            if pkgname not in pkgs:
> +                pkgs.append(pkgname)

I think this would look slightly better as

  if pkgname is None:
      continue
  if pkgname in pkgs:
      continue
  pkgs.append(pkgname)

Regardless of whether you change it or keep it as-is,

  Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>

-- 
Andrea Bolognani / Red Hat / Virtualization


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux