| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # coding: utf-8 | 2 # coding: utf-8 |
| 3 | 3 |
| 4 # This file is part of the Adblock Plus build tools, | 4 # This Source Code Form is subject to the terms of the Mozilla Public |
| 5 # Copyright (C) 2006-2014 Eyeo GmbH | 5 # License, v. 2.0. If a copy of the MPL was not distributed with this |
| 6 # | 6 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 7 # Adblock Plus is free software: you can redistribute it and/or modify | |
| 8 # it under the terms of the GNU General Public License version 3 as | |
| 9 # published by the Free Software Foundation. | |
| 10 # | |
| 11 # Adblock Plus is distributed in the hope that it will be useful, | |
| 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 # GNU General Public License for more details. | |
| 15 # | |
| 16 # You should have received a copy of the GNU General Public License | |
| 17 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | |
| 18 | 7 |
| 19 import sys | 8 import sys |
| 20 import os | 9 import os |
| 21 import posixpath | 10 import posixpath |
| 22 import re | 11 import re |
| 23 import io | 12 import io |
| 24 import errno | 13 import errno |
| 25 import logging | 14 import logging |
| 26 import subprocess | 15 import subprocess |
| 27 import urlparse | 16 import urlparse |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 else: | 235 else: |
| 247 logging.warning("Cannot restart %s automatically, please rerun" % target
) | 236 logging.warning("Cannot restart %s automatically, please rerun" % target
) |
| 248 | 237 |
| 249 if __name__ == "__main__": | 238 if __name__ == "__main__": |
| 250 logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) | 239 logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) |
| 251 repos = sys.argv[1:] | 240 repos = sys.argv[1:] |
| 252 if not len(repos): | 241 if not len(repos): |
| 253 repos = [os.getcwd()] | 242 repos = [os.getcwd()] |
| 254 for repo in repos: | 243 for repo in repos: |
| 255 resolve_deps(repo) | 244 resolve_deps(repo) |
| OLD | NEW |