2013/9/8 Jelle van der Waa <[email protected]>:
> +       def analyze(self, pkginfo, tar):
> +               if 'name' in pkginfo:
> +                       if any(pkginfo["name"].endswith(vcs) for vcs in 
> vcspackages) and not "conflicts" in pkginfo:
> +                               
> self.warnings.append(("vcs-package-conflicts", ()))
> +

Python trick: you can write

if pkginfo["name"].endswith(tuple(vcspackages)) and "conflicts" not in pkginfo:
    ...

-- 
Rémy.

Reply via email to