Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: parallel_emerge

Issue 3448030: Exit explicitly at end of parallel_emerge, so child processes exit as well. (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698