11 lines
372 B
Python
11 lines
372 B
Python
#!/usr/bin/env python3
|
|
import json
|
|
from pathlib import Path
|
|
root=Path(__file__).resolve().parents[1]
|
|
found=0
|
|
for f in sorted((root/'data/almalinux').glob('*/errata.full.json')):
|
|
x=json.loads(f.read_bytes()); assert isinstance(x,(list,dict)) and x, f
|
|
found+=1
|
|
if found==0: raise SystemExit('No AlmaLinux files')
|
|
print(f'Validated {found} AlmaLinux raw JSON files')
|