summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDan Foster <dan.foster@bristol.ac.uk>2013-06-02 21:25:14 +0000
committerDan Foster <dan.foster@bristol.ac.uk>2013-06-02 21:25:14 +0000
commit35232507f6eeefecdec77842f7b12209040f7a5c (patch)
treece29004d8438b055101908a01744ad44fdbe33a3 /tools
parent5ef9138ae6f8c27ae41e6c263cd7e4d64d743c22 (diff)
downloadbcfg2-35232507f6eeefecdec77842f7b12209040f7a5c.tar.gz
bcfg2-35232507f6eeefecdec77842f7b12209040f7a5c.tar.bz2
bcfg2-35232507f6eeefecdec77842f7b12209040f7a5c.zip
Update export.py to version tag IPS manifests
Diffstat (limited to 'tools')
-rwxr-xr-xtools/export.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/export.py b/tools/export.py
index 0f4724e6b..5cd0d5c41 100755
--- a/tools/export.py
+++ b/tools/export.py
@@ -227,6 +227,15 @@ E.G. 1.2.0pre1 is a valid version.
'VERSION="%s"\n' % version,
startswith=True,
dryrun=options.dryrun)
+ # update solaris IPS version
+ find_and_replace('solaris-ips/MANIFEST.bcfg2.header', 'set name=pkg.fmri value="pkg://bcfg2/bcfg2@',
+ 'set name=pkg.fmri value="pkg://bcfg2/bcfg2@%s"' % version,
+ startswith=True,
+ dryrun=options.dryrun)
+ find_and_replace('solaris-ips/MANIFEST.bcfg2-server.header', 'set name=pkg.fmri value="pkg://bcfg2/bcfg2-server@',
+ 'set name=pkg.fmri value="pkg://bcfg2/bcfg2-server@%s"' % version,
+ startswith=True,
+ dryrun=options.dryrun)
# set new version in Bcfg2/version.py
find_and_replace('src/lib/Bcfg2/version.py',
'__version__ =',