summaryrefslogtreecommitdiff
path: root/bin/update-release-info.py
diff options
context:
space:
mode:
authorLuca Falavigna <dktrkranz@debian.org>2011-02-10 23:18:10 +0100
committerLuca Falavigna <dktrkranz@debian.org>2011-02-10 23:18:10 +0100
commit84c6f9729dbbc175431874957d0654310410bd6f (patch)
treef1bc4ac49739eaa417eb3c79d794a5c5865dad22 /bin/update-release-info.py
parent738149c9bfb9965d013d01ef99f9bb1c2819e7e8 (diff)
Imported Upstream version 2.0.1upstream/2.0.1
Diffstat (limited to 'bin/update-release-info.py')
-rw-r--r--bin/update-release-info.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/update-release-info.py b/bin/update-release-info.py
index 5c438db..7e11c4b 100644
--- a/bin/update-release-info.py
+++ b/bin/update-release-info.py
@@ -57,7 +57,7 @@ In 'post' mode, files are prepared for the next release cycle:
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-__revision__ = "bin/update-release-info.py 5023 2010/06/14 22:05:46 scons"
+__revision__ = "bin/update-release-info.py 5134 2010/08/16 23:02:40 bdeegan"
import os
import sys
@@ -114,7 +114,11 @@ if version_tuple[3] != 'final':
else:
yyyy,mm,dd,_,_,_ = release_date
version_tuple = version_tuple[:4] + ((yyyy*100 + mm)*100 + dd,)
-version_string = '.'.join(map(str, version_tuple))
+ version_string = '.'.join(map(str, version_tuple))
+else:
+ # Final release doesn't have type or builddate in version string
+ version_string = '.'.join(map(str, version_tuple[:3]))
+
version_type = version_tuple[3]
if DEBUG: print 'version string', version_string