Skip to content

Commit

Permalink
Fix tarball name and tag name
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Sep 28, 2023
1 parent 2c3717a commit 38f04ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def create_tarball_name(args):

# Returns: sha, tarball file name, tarball full path
def create_tarball_path(tarball_name, version, builddir, dry_run):
tarball_fname = ' %s-%s.tar.bz2' % (tarball_name, version)
tarball_fname = '%s-%s.tar.bz2' % (tarball_name, version)
# Try using the tarball_name as it is
tarball_path = os.path.join(builddir, tarball_fname)

Expand Down Expand Up @@ -521,7 +521,7 @@ def generate_upload_tarball(args):

try:
# tilde is not a valid character in git
tag = ' %s_%s' % (args.package_alias, args.version.replace('~','-'))
tag = '%s_%s' % (args.package_alias, args.version.replace('~', '-'))
check_call(['git', 'tag', '-f', tag])
check_call(['git', 'push', '--tags'])
except ErrorNoPermsRepo:
Expand Down

0 comments on commit 38f04ab

Please sign in to comment.