Merge pull request #410 from sever-sever/T5261-build

T5261: aws-gwlbtun prepare_package must be before build package
This commit is contained in:
zdc 2023-09-15 12:18:28 +03:00 committed by GitHub
commit 411d7bacac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ from subprocess import run
def prepare_package() -> None:
"""Prepare a package for Noned
"""Prepare a package
"""
install_file = Path('./debian/install')
install_data = 'obj-x86_64-linux-gnu/gwlbtun usr/sbin'
@ -31,6 +31,8 @@ def build_package(package_name: str, package_ver: str) -> bool:
]
run(debmake_cmd)
prepare_package()
# build a package
run('debuild')
@ -49,8 +51,6 @@ if __name__ == '__main__':
help='Version for the package')
args = arg_parser.parse_args()
prepare_package()
if not build_package(args.package, args.version):
exit(1)