Permalink
Browse files

Make sure get_version_from_tarball really gets the correct version.

Client package tarballs contain multiple '-' characters, we want to
split from the last one.
  • Loading branch information...
1 parent 3390ccd commit 5f5de397aae652339824af8770e12b9ea1af846d @saschpe saschpe committed Dec 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 git_tarballs
View
@@ -52,7 +52,7 @@ def get_changelog_from_tarball(tar_name):
def get_version_from_tarball(tar_name):
with tarfile.open(tar_name) as tar:
try:
- return tar.firstmember.name.split('-', 1)[1]
+ return tar.firstmember.name.rsplit('-', 1)[1]
except IndexError:
sys.exit("Could not figure out version from directory "
"inside tarball: " + tar.firstmember.name)

0 comments on commit 5f5de39

Please sign in to comment.