def post_build_always(*, success=None, **kwargs): bye_git_daemon() if success: with at_dir(repo_dir): run_cmd(["git", "push", "origin", "all"], use_pty=True) git_add_files('PKGBUILD') git_commit()
def post_build(): package_list = '\n'.join( subprocess.check_output([ 'bash', '-c', 'source PKGBUILD; echo ${pkgname[@]}', ]).decode('utf-8').strip().split(' ')) with open('package.list', 'w') as f: f.write(package_list) git_add_files('package.list') # aur_post_build() will commit it aur_post_build()
def post_build(): git_add_files(['PKGBUILD']) git_commit()