From 980a2228754373ca8de86752919b85b716f7ee89 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Sun, 25 Sep 2022 23:34:55 -0500 Subject: [PATCH] Make build helper play nicer with binary package build --- build_helper.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build_helper.py b/build_helper.py index c6c6ec9..33d2349 100644 --- a/build_helper.py +++ b/build_helper.py @@ -5,6 +5,7 @@ A few tools to help keep Debian packages and artifacts well organized. from argparse import ArgumentParser from pathlib import Path from subprocess import run +import os import re @@ -51,10 +52,16 @@ if args.cmd == "build": # build the source package run(["debuild", "-i", "-us", "-uc", "-S"], cwd = upstream_root, check = True) + [orig_path] = project_root.glob("strikebot_*.orig.tar.xz") + orig_name = orig_path.name + # move outputs to build directory for p in project_root.iterdir(): if _is_output(p): p.rename(build_dir.joinpath(p.relative_to(project_root))) + + # create temporary link for orig tarball to satisfy binary package build + orig_path.symlink_to(build_dir.joinpath(orig_name).relative_to(project_root)) elif args.cmd == "clean": for p in build_dir.iterdir(): if _is_output(p): -- 2.30.2