| LEFT | RIGHT | 
|    1 # coding: utf-8 |    1 # coding: utf-8 | 
|    2  |    2  | 
|    3 # This file is part of the Adblock Plus web scripts, |    3 # This file is part of the Adblock Plus web scripts, | 
|    4 # Copyright (C) 2006-2015 Eyeo GmbH |    4 # Copyright (C) 2006-2015 Eyeo GmbH | 
|    5 # |    5 # | 
|    6 # Adblock Plus is free software: you can redistribute it and/or modify |    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 |    7 # it under the terms of the GNU General Public License version 3 as | 
|    8 # published by the Free Software Foundation. |    8 # published by the Free Software Foundation. | 
|    9 # |    9 # | 
|   10 # Adblock Plus is distributed in the hope that it will be useful, |   10 # Adblock Plus is distributed in the hope that it will be useful, | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
|   24   with changelogs and documentation. |   24   with changelogs and documentation. | 
|   25  |   25  | 
|   26 """ |   26 """ | 
|   27  |   27  | 
|   28 import sys, os, os.path, subprocess, ConfigParser, traceback, json, hashlib |   28 import sys, os, os.path, subprocess, ConfigParser, traceback, json, hashlib | 
|   29 import tempfile, shutil, urlparse, pipes, time, urllib2, struct |   29 import tempfile, shutil, urlparse, pipes, time, urllib2, struct | 
|   30 from datetime import datetime |   30 from datetime import datetime | 
|   31 from urllib import urlencode |   31 from urllib import urlencode | 
|   32 from xml.dom.minidom import parse as parseXml |   32 from xml.dom.minidom import parse as parseXml | 
|   33 from sitescripts.utils import get_config, setupStderr, get_template |   33 from sitescripts.utils import get_config, setupStderr, get_template | 
|   34 from sitescripts.extensions.utils import compareVersions, Configuration, writeAn
     droidUpdateManifest |   34 from sitescripts.extensions.utils import ( | 
 |   35   compareVersions, Configuration, | 
 |   36   writeAndroidUpdateManifest | 
 |   37 ) | 
|   35  |   38  | 
|   36 MAX_BUILDS = 50 |   39 MAX_BUILDS = 50 | 
|   37  |   40  | 
|   38  |   41  | 
|   39 class NightlyBuild(object): |   42 class NightlyBuild(object): | 
|   40   """ |   43   """ | 
|   41     Performs the build process for an extension, |   44     Performs the build process for an extension, | 
|   42     generating changelogs and documentation. |   45     generating changelogs and documentation. | 
|   43   """ |   46   """ | 
|   44  |   47  | 
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  509     except Exception, ex: |  512     except Exception, ex: | 
|  510       print >>sys.stderr, "The build for %s failed:" % repo |  513       print >>sys.stderr, "The build for %s failed:" % repo | 
|  511       traceback.print_exc() |  514       traceback.print_exc() | 
|  512  |  515  | 
|  513   file = open(nightlyConfigFile, 'wb') |  516   file = open(nightlyConfigFile, 'wb') | 
|  514   nightlyConfig.write(file) |  517   nightlyConfig.write(file) | 
|  515  |  518  | 
|  516  |  519  | 
|  517 if __name__ == '__main__': |  520 if __name__ == '__main__': | 
|  518   main() |  521   main() | 
| LEFT | RIGHT |