summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRaul Cuza <raulcuza@gmail.com>2011-07-06 16:08:50 -0400
committerRaul Cuza <raulcuza@gmail.com>2011-07-06 16:08:50 -0400
commit8d1baecf2123cc5f100e5b819d94badbefc1df08 (patch)
tree55b0e17b24f8128dd1c8d8388998eab629d51903 /tools
parent65c6238da8bb7cfc5e9af6e04e5a97d845b577c8 (diff)
downloadbcfg2-8d1baecf2123cc5f100e5b819d94badbefc1df08.tar.gz
bcfg2-8d1baecf2123cc5f100e5b819d94badbefc1df08.tar.bz2
bcfg2-8d1baecf2123cc5f100e5b819d94badbefc1df08.zip
Replace minorver with dictionary call.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/export2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/export2.py b/tools/export2.py
index e487b52e3..be78ff6e6 100755
--- a/tools/export2.py
+++ b/tools/export2.py
@@ -129,7 +129,7 @@ E.G. 1.2.0pre1 is a valid version.
-- %s <%s> %s
- """ % (version_release, minorver, name, email, formatdate(localtime=True))
+ """ % (version_release, version_info['build'], name, email, formatdate(localtime=True))
# write out the new debian changelog
@@ -151,13 +151,13 @@ E.G. 1.2.0pre1 is a valid version.
# Update redhat directory versions
if options.dryrun:
print "*** Replace redhat/VERIONS content with '%s'." % version_release
- print "*** Replace redhat/RELEASE content with '%s'." % minorver
+ print "*** Replace redhat/RELEASE content with '%s'." % version_info['build']
else:
with open('redhat/VERSION', 'w') as f:
f.write("%s\n" % version_release)
f.close()
with open('redhat/RELEASE', 'w') as f:
- f.write("0.0%s\n" % minorver)
+ f.write("0.0%s\n" % version_info['build'])
f.close()
# update solaris version