Correct `scons release` for bugfix releases

This corrects the package build to look for a tarbal named
"ocarina-5.11.1.tar.gz" instead of "ocarina-5.11.tar.gz"

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-12-06 19:34:47 -05:00
parent 9370ef34a1
commit fa812ece74
1 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,10 @@ def prepare_release(target, source, env):
f = open("PKGBUILD", "w")
for line in open("PKGBUILD.tmpl"):
line = line.replace("pkgver=", "pkgver=%s.%s" % (config.MAJOR, config.MINOR))
if config.BUG == 0:
line = line.replace("pkgver=", "pkgver=%s.%s" % (config.MAJOR, config.MINOR))
else:
line = line.replace("pkgver=", "pkgver=%s.%s.%s" % (config.MAJOR, config.MINOR, config.BUG))
line = line.replace("md5sums=", "md5sums=('%s')" % md5)
line = line.replace("YEAR", year)
line = line.replace("MONTH", month)