| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 1 # This file is part of the Adblock Plus web scripts, | 1 # This file is part of the Adblock Plus web scripts, |
| 2 # Copyright (C) 2006-present eyeo GmbH | 2 # Copyright (C) 2006-present eyeo GmbH |
| 3 # | 3 # |
| 4 # Adblock Plus is free software: you can redistribute it and/or modify | 4 # Adblock Plus is free software: you can redistribute it and/or modify |
| 5 # it under the terms of the GNU General Public License version 3 as | 5 # it under the terms of the GNU General Public License version 3 as |
| 6 # published by the Free Software Foundation. | 6 # published by the Free Software Foundation. |
| 7 # | 7 # |
| 8 # Adblock Plus is distributed in the hope that it will be useful, | 8 # Adblock Plus is distributed in the hope that it will be useful, |
| 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 for change in result.split('\x00\x00'): | 125 for change in result.split('\x00\x00'): |
| 126 if change: | 126 if change: |
| 127 date, author, revision, description = change.split('\x00') | 127 date, author, revision, description = change.split('\x00') |
| 128 yield {'date': date, 'author': author, 'revision': revision, 'de scription': description} | 128 yield {'date': date, 'author': author, 'revision': revision, 'de scription': description} |
| 129 | 129 |
| 130 def copyRepository(self): | 130 def copyRepository(self): |
| 131 """ | 131 """ |
| 132 Create a repository copy in a temporary directory | 132 Create a repository copy in a temporary directory |
| 133 """ | 133 """ |
| 134 self.tempdir = tempfile.mkdtemp(prefix=self.config.repositoryName) | 134 self.tempdir = tempfile.mkdtemp(prefix=self.config.repositoryName) |
| 135 command = ['hg', 'clone', '-q', self.config.repository, '-u', | 135 command = ['hg', 'clone', '-q', self.config.repository, '-u', |
|
Sebastian Noack
2017/10/09 01:56:17
For some reason flake8 didn't detect this redundan
Vasily Kuznetsov
2017/10/09 20:39:47
This is really strange... how are we supposed to t
Sebastian Noack
2017/10/10 22:01:48
I figured out what is going on here. This wasn't r
| |
| 136 self.config.revision, self.tempdir] | 136 self.config.revision, self.tempdir] |
| 137 subprocess.check_call(command) | 137 subprocess.check_call(command) |
| 138 | 138 |
| 139 # Make sure to run ensure_dependencies.py if present | 139 # Make sure to run ensure_dependencies.py if present |
| 140 depscript = os.path.join(self.tempdir, 'ensure_dependencies.py') | 140 depscript = os.path.join(self.tempdir, 'ensure_dependencies.py') |
| 141 if os.path.isfile(depscript): | 141 if os.path.isfile(depscript): |
| 142 subprocess.check_call([sys.executable, depscript, '-q']) | 142 subprocess.check_call([sys.executable, depscript, '-q']) |
| 143 | 143 |
| 144 def writeChangelog(self, changes): | 144 def writeChangelog(self, changes): |
| 145 """ | 145 """ |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 733 except Exception as ex: | 733 except Exception as ex: |
| 734 logging.error('The build for %s failed:', repo) | 734 logging.error('The build for %s failed:', repo) |
| 735 logging.exception(ex) | 735 logging.exception(ex) |
| 736 | 736 |
| 737 file = open(nightlyConfigFile, 'wb') | 737 file = open(nightlyConfigFile, 'wb') |
| 738 nightlyConfig.write(file) | 738 nightlyConfig.write(file) |
| 739 | 739 |
| 740 | 740 |
| 741 if __name__ == '__main__': | 741 if __name__ == '__main__': |
| 742 main() | 742 main() |
| OLD | NEW |