pthbs_genpkgpy

Template engine for producing packages for pthbs written using Python and Jinja
git clone https://ccx.te2000.cz/git/pthbs_genpkgpy
Log | Files | Refs | README

commit a17cff5355e6e3645a17015027349b11910dd85e
parent ebf291d4995ecdcc1ef86d238907b377dcd0731b
Author: Jan Pobrislo <ccx@te2000.cz>
Date:   Wed, 17 Dec 2025 00:38:18 +0000

Report nicer error on missing shebang

Diffstat:
Mgenpkg.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/genpkg.py b/genpkg.py @@ -126,7 +126,8 @@ def to_install_name(name, pkg_hash, env_hash=None): def parse_package_deps(script_data): lines = script_data.split(b'\n') - assert lines[0].startswith(b"#!") + if not lines[0].startswith(b"#!"): + raise ValueError(lines[0]) for line in lines[1:]: if line == b'': return