#!/usr/bin/env python3
from fempkg import register_package  # assuming your package manager script is pkg.py and in the same folder

# List of LFS Chapter 8.2 packages
packages = [
    ("Binutils", "2.45-P1"),
    ("GCC", "15.2.0-P1"),
    ("Linux-API-Headers", "6.16.1"),
    ("Glibc", "2.42"),
    ("Libstdc++", "15.2.0"),
    ("M4", "1.4.20"),
    ("Ncurses", "6.5-20250809"),
    ("Bash", "5.3"),
    ("Coreutils", "9.7"),
    ("Diffutils", "3.12"),
    ("File", "5.46"),
    ("Findutils", "4.10.0"),
    ("Gawk", "5.3.2"),
    ("Grep", "3.12"),
    ("Gzip", "1.14"),
    ("Make", "4.4.1"),
    ("Patch", "2.8"),
    ("Sed", "4.9"),
    ("Tar", "1.35"),
    ("Xz", "5.8.1"),
    ("Binutils", "2.45-P2"),
    ("GCC", "15.2.0-P2"),
    ("Gettext", "0.26"),
    ("Bison", "3.8.2"),
    ("Perl", "5.42.0"),
    ("Python", "3.13.7"),
    ("Texinfo", "7.2"),
    ("Util-linux", "2.41.1")
]

for name, ver in packages:
    register_package(name, ver)

print("All LFS packages pre-registered successfully!")

