Update auto-gen
This commit is contained in:
parent
281b120748
commit
fccf9393b6
3 changed files with 48 additions and 31 deletions
26
README.md
26
README.md
|
@ -1,25 +1,3 @@
|
||||||
# Parch_os repo
|
# PPR: Parch Pacman repository
|
||||||
|
|
||||||
- [alg-pure-cala-config-21](https://github.com/parch-os/parch_repo/raw/main/x86_64/alg-pure-cala-config-21.12-1-any.pkg.tar.zst)
|
- [x86_64](x86_64)
|
||||||
- [calamares-3](https://github.com/parch-os/parch_repo/raw/main/x86_64/calamares-3.2.47-2-x86_64.pkg.tar.zst)
|
|
||||||
- [ckbcomp-1](https://github.com/parch-os/parch_repo/raw/main/x86_64/ckbcomp-1.205-1-any.pkg.tar.zst)
|
|
||||||
- [doas-6](https://github.com/parch-os/parch_repo/raw/main/x86_64/doas-6.3p6-1-x86_64.pkg.tar.zst)
|
|
||||||
- [doas](https://github.com/parch-os/parch_repo/raw/main/x86_64/doas.pkg.tar.zst)
|
|
||||||
- [fish-parch](https://github.com/parch-os/parch_repo/raw/main/x86_64/fish-parch.pkg.tar.zst)
|
|
||||||
- [fluent-gtk-theme](https://github.com/parch-os/parch_repo/raw/main/x86_64/fluent-gtk-theme.pkg.tar.zst)
|
|
||||||
- [gahshomar](https://github.com/parch-os/parch_repo/raw/main/x86_64/gahshomar.pkg.tar.zst)
|
|
||||||
- [iranian-fonts](https://github.com/parch-os/parch_repo/raw/main/x86_64/iranian-fonts.pkg.tar.zst)
|
|
||||||
- [lutris](https://github.com/parch-os/parch_repo/raw/main/x86_64/lutris.pkg.tar.zst)
|
|
||||||
- [mintstick-git-r221](https://github.com/parch-os/parch_repo/raw/main/x86_64/mintstick-git-r221.e7b1893-1-any.pkg.tar.zst)
|
|
||||||
- [mkinitcpio-openswap-0](https://github.com/parch-os/parch_repo/raw/main/x86_64/mkinitcpio-openswap-0.1.0-4-any.pkg.tar.zst)
|
|
||||||
- [octopi](https://github.com/parch-os/parch_repo/raw/main/x86_64/octopi.pkg.tar.zst)
|
|
||||||
- [parch-cala-config-1-2-any](https://github.com/parch-os/parch_repo/raw/main/x86_64/parch-cala-config-1-2-any.pkg.tar.zst)
|
|
||||||
- [parch-cinnamon-config-1-2-any](https://github.com/parch-os/parch_repo/raw/main/x86_64/parch-cinnamon-config-1-2-any.pkg.tar.zst)
|
|
||||||
- [parch-doas-config-1-1-any](https://github.com/parch-os/parch_repo/raw/main/x86_64/parch-doas-config-1-1-any.pkg.tar.zst)
|
|
||||||
- [parch_repo](https://github.com/parch-os/parch_repo/raw/main/x86_64/parch_repo.db)
|
|
||||||
- [parch_repo](https://github.com/parch-os/parch_repo/raw/main/x86_64/parch_repo.files)
|
|
||||||
- [pyabr-2](https://github.com/parch-os/parch_repo/raw/main/x86_64/pyabr-2.3.0-1-any.pkg.tar.zst)
|
|
||||||
- [python-pyparted-3](https://github.com/parch-os/parch_repo/raw/main/x86_64/python-pyparted-3.11.7-1-x86_64.pkg.tar.zst)
|
|
||||||
- [slingscold](https://github.com/parch-os/parch_repo/raw/main/x86_64/slingscold.pkg.tar.zst)
|
|
||||||
- [vazir-fonts-30](https://github.com/parch-os/parch_repo/raw/main/x86_64/vazir-fonts-30.1.0-1-any.pkg.tar.zst)
|
|
||||||
- [yay](https://github.com/parch-os/parch_repo/raw/main/x86_64/yay.pkg.tar.zst)
|
|
||||||
|
|
30
auto_gen.py
30
auto_gen.py
|
@ -1,22 +1,38 @@
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
logging.basicConfig(level=logging.INFO, format="%(levelname)s: %(message)s")
|
||||||
|
|
||||||
archs = ("x86_64",)
|
archs = ("x86_64",)
|
||||||
base_text = """# Parch_os repo
|
archs_text = """[../](..)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
base_url = "https://github.com/parch-os/parch_repo/raw/main/{arch}/{package}"
|
README_text = """# PPR: Parch Pacman repository
|
||||||
|
|
||||||
|
"""
|
||||||
|
base_url = "https://parch-os.github.io/ppr/{arch}/{package}"
|
||||||
|
|
||||||
for arch in archs:
|
for arch in archs:
|
||||||
|
logging.info("Generating for arch: %s", arch)
|
||||||
|
README_text += f"- [{arch}]({arch})\n"
|
||||||
|
|
||||||
packages = os.listdir(arch)
|
packages = os.listdir(arch)
|
||||||
packages.sort()
|
packages.sort()
|
||||||
|
|
||||||
for package in packages:
|
for package in packages:
|
||||||
base_text += (
|
if not ".zst" in package:
|
||||||
"- [{}]".format(package.split(".")[0])
|
continue
|
||||||
|
|
||||||
|
logging.info("Generating for package: %s", package)
|
||||||
|
archs_text += (
|
||||||
|
f"- [{package.split('.')[0]}]"
|
||||||
+ "("
|
+ "("
|
||||||
+ base_url.format(arch=arch, package=package)
|
+ base_url.format(arch=arch, package=package)
|
||||||
+ ")"
|
+ ")\n"
|
||||||
+ "\n"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
with open(f"{arch}/README.md", "w") as f:
|
||||||
|
f.write(archs_text)
|
||||||
|
|
||||||
with open("README.md", "w") as f:
|
with open("README.md", "w") as f:
|
||||||
f.write(base_text)
|
f.write(README_text)
|
||||||
|
|
23
x86_64/README.md
Normal file
23
x86_64/README.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
[../](..)
|
||||||
|
|
||||||
|
- [alg-pure-cala-config-21](https://parch-os.github.io/ppr/x86_64/alg-pure-cala-config-21.12-1-any.pkg.tar.zst)
|
||||||
|
- [calamares-3](https://parch-os.github.io/ppr/x86_64/calamares-3.2.47-2-x86_64.pkg.tar.zst)
|
||||||
|
- [ckbcomp-1](https://parch-os.github.io/ppr/x86_64/ckbcomp-1.205-1-any.pkg.tar.zst)
|
||||||
|
- [doas-6](https://parch-os.github.io/ppr/x86_64/doas-6.3p6-1-x86_64.pkg.tar.zst)
|
||||||
|
- [doas](https://parch-os.github.io/ppr/x86_64/doas.pkg.tar.zst)
|
||||||
|
- [fish-parch](https://parch-os.github.io/ppr/x86_64/fish-parch.pkg.tar.zst)
|
||||||
|
- [fluent-gtk-theme](https://parch-os.github.io/ppr/x86_64/fluent-gtk-theme.pkg.tar.zst)
|
||||||
|
- [gahshomar](https://parch-os.github.io/ppr/x86_64/gahshomar.pkg.tar.zst)
|
||||||
|
- [iranian-fonts](https://parch-os.github.io/ppr/x86_64/iranian-fonts.pkg.tar.zst)
|
||||||
|
- [lutris](https://parch-os.github.io/ppr/x86_64/lutris.pkg.tar.zst)
|
||||||
|
- [mintstick-git-r221](https://parch-os.github.io/ppr/x86_64/mintstick-git-r221.e7b1893-1-any.pkg.tar.zst)
|
||||||
|
- [mkinitcpio-openswap-0](https://parch-os.github.io/ppr/x86_64/mkinitcpio-openswap-0.1.0-4-any.pkg.tar.zst)
|
||||||
|
- [octopi](https://parch-os.github.io/ppr/x86_64/octopi.pkg.tar.zst)
|
||||||
|
- [parch-cala-config-1-2-any](https://parch-os.github.io/ppr/x86_64/parch-cala-config-1-2-any.pkg.tar.zst)
|
||||||
|
- [parch-cinnamon-config-1-2-any](https://parch-os.github.io/ppr/x86_64/parch-cinnamon-config-1-2-any.pkg.tar.zst)
|
||||||
|
- [parch-doas-config-1-1-any](https://parch-os.github.io/ppr/x86_64/parch-doas-config-1-1-any.pkg.tar.zst)
|
||||||
|
- [pyabr-2](https://parch-os.github.io/ppr/x86_64/pyabr-2.3.0-1-any.pkg.tar.zst)
|
||||||
|
- [python-pyparted-3](https://parch-os.github.io/ppr/x86_64/python-pyparted-3.11.7-1-x86_64.pkg.tar.zst)
|
||||||
|
- [slingscold](https://parch-os.github.io/ppr/x86_64/slingscold.pkg.tar.zst)
|
||||||
|
- [vazirmatn-fonts-32](https://parch-os.github.io/ppr/x86_64/vazirmatn-fonts-32.101-2-any.pkg.tar.zst)
|
||||||
|
- [yay](https://parch-os.github.io/ppr/x86_64/yay.pkg.tar.zst)
|
Loading…
Add table
Reference in a new issue