From fa812ece744dd7365bc1c6b087e20419efd8f712 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Thu, 6 Dec 2012 19:34:47 -0500 Subject: [PATCH] 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 --- Sconstruct | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sconstruct b/Sconstruct index 3168abe2..b200a437 100644 --- a/Sconstruct +++ b/Sconstruct @@ -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)