diff options
author | Pawel Hajdan, Jr <phajdan.jr@gentoo.org> | 2011-01-20 15:54:29 +0100 |
---|---|---|
committer | Pawel Hajdan, Jr <phajdan.jr@gentoo.org> | 2011-01-20 16:05:10 +0100 |
commit | f792011e6f123644dfd8e79004a73964c6f99c99 (patch) | |
tree | 7102cb479118a5e53a3cff1f7a6c26a52eb9532b /v8-create-tarball | |
parent | Make subversion dependency optional. (diff) | |
download | chromium-tools-f792011e6f123644dfd8e79004a73964c6f99c99.tar.gz chromium-tools-f792011e6f123644dfd8e79004a73964c6f99c99.tar.bz2 chromium-tools-f792011e6f123644dfd8e79004a73964c6f99c99.zip |
Double-check version.cc when creating the tarball.
Sometimes upstream mistags the releases.
Diffstat (limited to 'v8-create-tarball')
-rwxr-xr-x | v8-create-tarball | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/v8-create-tarball b/v8-create-tarball index 08d8b06..8306819 100755 --- a/v8-create-tarball +++ b/v8-create-tarball @@ -11,6 +11,8 @@ import shutil import tarfile import tempfile +import chromium_tools + parser = optparse.OptionParser(usage="%prog <v8-version>") (options, args) = parser.parse_args() if len(args) != 1: @@ -29,6 +31,13 @@ try: svn_client = pysvn.Client() svn_client.checkout(checkout_url, checkout_dir) + version_contents = open(os.path.join(checkout_dir, 'src', 'version.cc')).read() + actual_version = chromium_tools.v8_extract_version(version_contents) + if actual_version != args[0]: + print 'Version info inside version.cc does not match!' + print 'Expected %s, got %s. Exiting' % (args[0], actual_version) + sys.exit(1) + archive_name = '%s.tar.gz' % target_name try: archive = tarfile.open(archive_name, 'w:gz') @@ -40,3 +49,4 @@ try: archive.close() finally: shutil.rmtree(tmpdir) + pass |