3636
3737def makeDebianPackage (
3838 signKey : str | None = None , sourceBuild : bool = False , distName : str = "unstable" ,
39- buildName : str = "" , forLaunchpad : bool = False
39+ buildName : str = "" , forLaunchpad : bool = False , oldLicense : bool = False ,
4040) -> str :
4141 """Build a Debian package."""
4242 print ("" )
@@ -96,7 +96,7 @@ def makeDebianPackage(
9696 print ("Copying or generating additional files ..." )
9797 print ("" )
9898
99- copyPackageFiles (outDir , setupPy = True )
99+ copyPackageFiles (outDir , oldLicense = oldLicense )
100100
101101 # Copy/Write Debian Files
102102 # =======================
@@ -181,14 +181,14 @@ def launchpad(args: argparse.Namespace) -> None:
181181 bldNum = "0"
182182
183183 distLoop = [
184- ("24.04" , "noble" ),
185- ("25.04" , "plucky" ),
186- ("25.10" , "questing" ),
184+ ("24.04" , "noble" , True ),
185+ ("25.04" , "plucky" , True ),
186+ ("25.10" , "questing" , False ),
187187 ]
188188
189189 print ("Building Ubuntu packages for:" )
190190 print ("" )
191- for distNum , codeName in distLoop :
191+ for distNum , codeName , _ in distLoop :
192192 print (f" * Ubuntu { distNum } { codeName .title ()} " )
193193 print ("" )
194194
@@ -198,14 +198,15 @@ def launchpad(args: argparse.Namespace) -> None:
198198 print ("" )
199199
200200 dputCmd = []
201- for distNum , codeName in distLoop :
201+ for distNum , codeName , oldLicense in distLoop :
202202 buildName = f"ubuntu{ distNum } .{ bldNum } "
203203 dCmd = makeDebianPackage (
204204 signKey = signKey ,
205205 sourceBuild = True ,
206206 distName = codeName ,
207207 buildName = buildName ,
208208 forLaunchpad = True ,
209+ oldLicense = oldLicense ,
209210 )
210211 dputCmd .append (dCmd )
211212
0 commit comments