| OLD | NEW |
| 1 # coding: utf-8 | 1 # coding: utf-8 |
| 2 | 2 |
| 3 # This file is part of the Adblock Plus build tools, | 3 # This Source Code Form is subject to the terms of the Mozilla Public |
| 4 # Copyright (C) 2006-2014 Eyeo GmbH | 4 # License, v. 2.0. If a copy of the MPL was not distributed with this |
| 5 # | 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 6 # Adblock Plus is free software: you can redistribute it and/or modify | |
| 7 # it under the terms of the GNU General Public License version 3 as | |
| 8 # published by the Free Software Foundation. | |
| 9 # | |
| 10 # Adblock Plus is distributed in the hope that it will be useful, | |
| 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 # GNU General Public License for more details. | |
| 14 # | |
| 15 # You should have received a copy of the GNU General Public License | |
| 16 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | 6 |
| 18 import os, re, codecs, subprocess, tarfile, json | 7 import os, re, codecs, subprocess, tarfile, json |
| 19 from StringIO import StringIO | 8 from StringIO import StringIO |
| 20 | 9 |
| 21 def run(baseDir, type, version, keyFiles, downloadsRepo): | 10 def run(baseDir, type, version, keyFiles, downloadsRepo): |
| 22 if type == "gecko": | 11 if type == "gecko": |
| 23 import buildtools.packagerGecko as packager | 12 import buildtools.packagerGecko as packager |
| 24 elif type == "chrome": | 13 elif type == "chrome": |
| 25 import buildtools.packagerChrome as packager | 14 import buildtools.packagerChrome as packager |
| 26 | 15 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 archiveHandle.close() | 90 archiveHandle.close() |
| 102 downloads.append(archivePath) | 91 downloads.append(archivePath) |
| 103 | 92 |
| 104 # Now add the downloads and commit | 93 # Now add the downloads and commit |
| 105 subprocess.check_call(['hg', 'add', '-R', downloadsRepo] + downloads) | 94 subprocess.check_call(['hg', 'add', '-R', downloadsRepo] + downloads) |
| 106 subprocess.check_call(['hg', 'commit', '-R', downloadsRepo, '-m', 'Releasing %
s %s' % (extensionName, version)]) | 95 subprocess.check_call(['hg', 'commit', '-R', downloadsRepo, '-m', 'Releasing %
s %s' % (extensionName, version)]) |
| 107 | 96 |
| 108 # Push all changes | 97 # Push all changes |
| 109 subprocess.check_call(['hg', 'push', '-R', baseDir]) | 98 subprocess.check_call(['hg', 'push', '-R', baseDir]) |
| 110 subprocess.check_call(['hg', 'push', '-R', downloadsRepo]) | 99 subprocess.check_call(['hg', 'push', '-R', downloadsRepo]) |
| OLD | NEW |