Fix debian build

This commit is contained in:
Veronica Berglyd Olsen
2025-09-14 18:37:23 +02:00
parent b61aec9212
commit bb01d0e5ae
5 changed files with 22 additions and 21 deletions
+8 -7
View File
@@ -36,7 +36,7 @@ SIGN_KEY = "D6A9F6B8F227CF7C6F6D1EE84DBBE4B734B0BD08"
def makeDebianPackage(
signKey: str | None = None, sourceBuild: bool = False, distName: str = "unstable",
buildName: str = "", forLaunchpad: bool = False
buildName: str = "", forLaunchpad: bool = False, oldLicense: bool = False,
) -> str:
"""Build a Debian package."""
print("")
@@ -96,7 +96,7 @@ def makeDebianPackage(
print("Copying or generating additional files ...")
print("")
copyPackageFiles(outDir, setupPy=True)
copyPackageFiles(outDir, oldLicense=oldLicense)
# Copy/Write Debian Files
# =======================
@@ -181,14 +181,14 @@ def launchpad(args: argparse.Namespace) -> None:
bldNum = "0"
distLoop = [
("24.04", "noble"),
("25.04", "plucky"),
("25.10", "questing"),
("24.04", "noble", True),
("25.04", "plucky", True),
("25.10", "questing", False),
]
print("Building Ubuntu packages for:")
print("")
for distNum, codeName in distLoop:
for distNum, codeName, _ in distLoop:
print(f" * Ubuntu {distNum} {codeName.title()}")
print("")
@@ -198,7 +198,7 @@ def launchpad(args: argparse.Namespace) -> None:
print("")
dputCmd = []
for distNum, codeName in distLoop:
for distNum, codeName, oldLicense in distLoop:
buildName = f"ubuntu{distNum}.{bldNum}"
dCmd = makeDebianPackage(
signKey=signKey,
@@ -206,6 +206,7 @@ def launchpad(args: argparse.Namespace) -> None:
distName=codeName,
buildName=buildName,
forLaunchpad=True,
oldLicense=oldLicense,
)
dputCmd.append(dCmd)