Skip to content

Commit

Permalink
Remove tilde from GitHub package name
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed May 26, 2024
1 parent 0fc1af7 commit 16f5670
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkgutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,8 @@ def makeWindowsZip() -> None:
##

def makeDebianPackage(
signKey: str | None = None, sourceBuild: bool = False,
distName: str = "unstable", buildName: str = "", oldSetuptools: bool = False
signKey: str | None = None, sourceBuild: bool = False, distName: str = "unstable",
buildName: str = "", oldSetuptools: bool = False, forLaunchpad: bool = False
) -> str:
"""Build a Debian package."""
print("")
Expand All @@ -651,7 +651,10 @@ def makeDebianPackage(
pkgDate = email.utils.format_datetime(relDate.replace(hour=12, tzinfo=None))
print("")

pkgVers = numVers.replace("a", "~a").replace("b", "~b").replace("rc", "~rc")
if forLaunchpad:
pkgVers = numVers.replace("a", "~a").replace("b", "~b").replace("rc", "~rc")
else:
pkgVers = numVers
pkgVers = f"{pkgVers}+{buildName}" if buildName else pkgVers

# Set Up Folder
Expand Down Expand Up @@ -862,6 +865,7 @@ def makeForLaunchpad(doSign: bool = False, isFirst: bool = False) -> None:
distName=codeName,
buildName=buildName,
oldSetuptools=oldSetup,
forLaunchpad=True,
)
dputCmd.append(dCmd)

Expand Down

0 comments on commit 16f5670

Please sign in to comment.