skip lines without colon

This commit is contained in:
Michael Calmer 2023-02-26 14:40:15 +01:00 committed by Daniel Wozniak
parent 295f002fc3
commit dd2d7954a1

View file

@ -2570,6 +2570,8 @@ def _find_ptf_packages(pkgs, root=None):
for line in output.splitlines():
if not line.strip():
continue
if ":" not in line:
continue
pkg, provides = line.split(":", 1)
if "ptf()" in provides:
ptfs.append(pkg)