mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Merge pull request #410 from sever-sever/T5261-build
T5261: aws-gwlbtun prepare_package must be before build package
This commit is contained in:
commit
411d7bacac
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user