OLD | NEW |
1 #!/usr/bin/python2.6 | 1 #!/usr/bin/python2.6 |
2 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 2 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Program to run emerge in parallel, for significant speedup. | 6 """Program to run emerge in parallel, for significant speedup. |
7 | 7 |
8 Usage: | 8 Usage: |
9 ./parallel_emerge [--board=BOARD] [--workon=PKGS] [--no-workon-deps] | 9 ./parallel_emerge [--board=BOARD] [--workon=PKGS] [--no-workon-deps] |
10 [emerge args] package" | 10 [emerge args] package" |
(...skipping 1715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1726 if deps.board and "--pretend" not in emerge.opts: | 1726 if deps.board and "--pretend" not in emerge.opts: |
1727 portage.env_update() | 1727 portage.env_update() |
1728 | 1728 |
1729 # If we already upgraded portage, we don't need to do so again. But we do | 1729 # If we already upgraded portage, we don't need to do so again. But we do |
1730 # need to upgrade the rest of the packages. So we'll go ahead and do that. | 1730 # need to upgrade the rest of the packages. So we'll go ahead and do that. |
1731 if portage_upgrade: | 1731 if portage_upgrade: |
1732 args = sys.argv[1:] + ["--nomerge=sys-apps/portage"] | 1732 args = sys.argv[1:] + ["--nomerge=sys-apps/portage"] |
1733 os.execvp(os.path.realpath(sys.argv[0]), args) | 1733 os.execvp(os.path.realpath(sys.argv[0]), args) |
1734 | 1734 |
1735 print "Done" | 1735 print "Done" |
| 1736 sys.exit(0) |
1736 | 1737 |
1737 if __name__ == "__main__": | 1738 if __name__ == "__main__": |
1738 main() | 1739 main() |
OLD | NEW |