Minor tweaks to build helper
authorJakob Cornell <jakob+gpg@jcornell.net>
Sun, 25 Sep 2022 17:57:18 +0000 (12:57 -0500)
committerJakob Cornell <jakob+gpg@jcornell.net>
Sun, 25 Sep 2022 17:57:18 +0000 (12:57 -0500)
build_helper.py

index c669c8302e47449c0074332fe3d91c639046fde2..c6c6ec95c15798b19725419c3430a1a7dd399d45 100644 (file)
@@ -18,6 +18,7 @@ def _is_output(path: Path) -> bool:
                        ".deb",
                        ".debian.tar.xz",
                        ".dsc",
+                       ".orig.tar.xz",
                ]
        )
 
@@ -45,10 +46,10 @@ if args.cmd == "build":
                p.unlink()
 
        # regenerate the "orig" tarball from the current source
-       run(["dh_make", "-y", "--indep", "--createorig", "-p", "strikebot_" + version], cwd = upstream_root)
+       run(["dh_make", "--python", "--createorig", "-p", "strikebot_" + version], cwd = upstream_root)
 
-       # build the package
-       run(["debuild"], cwd = upstream_root, check = True)
+       # build the source package
+       run(["debuild", "-i", "-us", "-uc", "-S"], cwd = upstream_root, check = True)
 
        # move outputs to build directory
        for p in project_root.iterdir():