10 Sep
2013
10 Sep
'13
7:54 a.m.
2013/9/8 Jelle van der Waa <jelle@vdwaa.nl>:
+ 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.