#!/usr/bin/env python3 import json, os pkgs = [] for f in os.listdir('repo'): if f.endswith('.pkg.tar.zst') and '-debug-' not in f: size = os.path.getsize(os.path.join('repo', f)) pkgs.append({'name': f, 'size': size}) pkgs.sort(key=lambda p: p['name']) rows = '' for p in pkgs: size_mb = p['size'] / 1024 / 1024 rows += f'''