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

Side by Side Diff: parallel_emerge

Issue 3080005: Tell emerge to stop beeping at us. (Closed) Base URL: ssh://git@chromiumos-git/crosutils.git
Patch Set: Created 10 years, 4 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
« 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 os.environ["CHOST"] = f.readline().strip() 284 os.environ["CHOST"] = f.readline().strip()
285 f.close() 285 f.close()
286 286
287 # Although CHROMEOS_ROOT isn't specific to boards, it's normally setup 287 # Although CHROMEOS_ROOT isn't specific to boards, it's normally setup
288 # inside emerge-${BOARD}, so we set it up here for compatibility. It 288 # inside emerge-${BOARD}, so we set it up here for compatibility. It
289 # will be going away soon as we migrate to CROS_WORKON_SRCROOT. 289 # will be going away soon as we migrate to CROS_WORKON_SRCROOT.
290 os.environ.setdefault("CHROMEOS_ROOT", os.environ["HOME"] + "/trunk") 290 os.environ.setdefault("CHROMEOS_ROOT", os.environ["HOME"] + "/trunk")
291 291
292 # Modify the environment to disable locking. 292 # Modify the environment to disable locking.
293 os.environ["PORTAGE_LOCKS"] = "false" 293 os.environ["PORTAGE_LOCKS"] = "false"
294
295 # Turn off interactive delays
296 os.environ["EBEEP_IGNORE"] = "1"
297 os.environ["EPAUSE_IGNORE"] = "1"
294 os.environ["UNMERGE_DELAY"] = "0" 298 os.environ["UNMERGE_DELAY"] = "0"
295 299
296 # Parse the emerge options. 300 # Parse the emerge options.
297 action, opts, cmdline_packages = parse_opts(emerge_args) 301 action, opts, cmdline_packages = parse_opts(emerge_args)
298 302
299 # If we're installing to the board, we want the --root-deps option so that 303 # If we're installing to the board, we want the --root-deps option so that
300 # portage will install the build dependencies to that location as well. 304 # portage will install the build dependencies to that location as well.
301 if self.board: 305 if self.board:
302 opts.setdefault("--root-deps", True) 306 opts.setdefault("--root-deps", True)
303 307
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 for db_pkg in final_db.match_pkgs(pkg): 1265 for db_pkg in final_db.match_pkgs(pkg):
1262 print "Adding %s to world" % db_pkg.cp 1266 print "Adding %s to world" % db_pkg.cp
1263 new_world_pkgs.append(db_pkg.cp) 1267 new_world_pkgs.append(db_pkg.cp)
1264 if new_world_pkgs: 1268 if new_world_pkgs:
1265 world_set.update(new_world_pkgs) 1269 world_set.update(new_world_pkgs)
1266 1270
1267 print "Done" 1271 print "Done"
1268 1272
1269 if __name__ == "__main__": 1273 if __name__ == "__main__":
1270 main() 1274 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