T5261: Fix build aws-gwlbtun for binary path

This commit is contained in:
Viacheslav Hletenko 2023-09-13 13:20:25 +00:00
parent b933ff4493
commit 23cd4575dc

View File

@ -1,9 +1,18 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from argparse import ArgumentParser from argparse import ArgumentParser
from pathlib import Path
from subprocess import run from subprocess import run
def prepare_package() -> None:
"""Prepare a package for Noned
"""
install_file = Path('./debian/install')
install_data = 'obj-x86_64-linux-gnu/gwlbtun usr/sbin'
install_file.write_text(install_data)
def build_package(package_name: str, package_ver: str) -> bool: def build_package(package_name: str, package_ver: str) -> bool:
"""Build a package using commands from external file """Build a package using commands from external file
@ -39,6 +48,8 @@ if __name__ == '__main__':
help='Version for the package') help='Version for the package')
args = arg_parser.parse_args() args = arg_parser.parse_args()
prepare_package()
if not build_package(args.package, args.version): if not build_package(args.package, args.version):
exit(1) exit(1)