summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRaul Cuza <raulcuza@gmail.com>2011-07-06 16:04:47 -0400
committerRaul Cuza <raulcuza@gmail.com>2011-07-06 16:04:47 -0400
commit65c6238da8bb7cfc5e9af6e04e5a97d845b577c8 (patch)
treec5dcfbf805824d31220c94beb46cdb9d999e9fe1 /tools
parent7251e6f829b3a81ce281318d930c19429de71e81 (diff)
downloadbcfg2-65c6238da8bb7cfc5e9af6e04e5a97d845b577c8.tar.gz
bcfg2-65c6238da8bb7cfc5e9af6e04e5a97d845b577c8.tar.bz2
bcfg2-65c6238da8bb7cfc5e9af6e04e5a97d845b577c8.zip
Replace majorver[0:3] with dictionary call.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/export2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/export2.py b/tools/export2.py
index 1beb9e628..e487b52e3 100755
--- a/tools/export2.py
+++ b/tools/export2.py
@@ -114,7 +114,7 @@ E.G. 1.2.0pre1 is a valid version.
if options.debug:
print "version is %s" % version
print "version_info is %s" % version_info
- print "version_version is %s" % version_release
+ print "version_release is %s" % version_release
tarname = '/tmp/%s-%s.tar.gz' % (pkgname, version)
@@ -186,7 +186,7 @@ E.G. 1.2.0pre1 is a valid version.
dryrun=options.dryrun)
# update the version in the docs
find_and_replace('doc/conf.py', 'version =',
- 'version = \'%s\'\n' % majorver[0:3],
+ 'version = \'%s.%s\'\n' % (version_info['major'], version_info['minor']),
startswith=True,
dryrun=options.dryrun)
find_and_replace('doc/conf.py', 'release =',