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

Side by Side Diff: cros_mark_as_stable.py

Issue 4385002: Fix broken quoting in cbuildbot.py, allowing for correct revving of ebuilds. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: Created 10 years, 1 month 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 | « bin/cbuildbot.py ('k') | 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/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """This module uprevs a given package's ebuild to the next revision.""" 7 """This module uprevs a given package's ebuild to the next revision."""
8 8
9 9
10 import fileinput 10 import fileinput
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 else: 487 else:
488 overlays = { 488 overlays = {
489 '%s/private-overlays/chromeos-overlay' % gflags.FLAGS.srcroot: [], 489 '%s/private-overlays/chromeos-overlay' % gflags.FLAGS.srcroot: [],
490 '%s/third_party/chromiumos-overlay' % gflags.FLAGS.srcroot: [] 490 '%s/third_party/chromiumos-overlay' % gflags.FLAGS.srcroot: []
491 } 491 }
492 492
493 if command == 'commit': 493 if command == 'commit':
494 _BuildEBuildDictionary(overlays, gflags.FLAGS.all, package_list) 494 _BuildEBuildDictionary(overlays, gflags.FLAGS.all, package_list)
495 495
496 for overlay, ebuilds in overlays.items(): 496 for overlay, ebuilds in overlays.items():
497 if not os.path.exists(overlay): continue 497 if not os.path.exists(overlay):
498 Warning("Skipping %s" % overlay)
499 continue
498 os.chdir(overlay) 500 os.chdir(overlay)
499 501
500 if command == 'clean': 502 if command == 'clean':
501 _Clean() 503 _Clean()
502 elif command == 'push': 504 elif command == 'push':
503 _PushChange() 505 _PushChange()
504 elif command == 'commit' and ebuilds: 506 elif command == 'commit' and ebuilds:
505 work_branch = _GitBranch(_STABLE_BRANCH_NAME) 507 work_branch = _GitBranch(_STABLE_BRANCH_NAME)
506 work_branch.CreateBranch() 508 work_branch.CreateBranch()
507 if not work_branch.Exists(): 509 if not work_branch.Exists():
(...skipping 18 matching lines...) Expand all
526 raise 528 raise
527 529
528 if revved_packages: 530 if revved_packages:
529 _CleanStalePackages(gflags.FLAGS.board, revved_packages) 531 _CleanStalePackages(gflags.FLAGS.board, revved_packages)
530 else: 532 else:
531 work_branch.Delete() 533 work_branch.Delete()
532 534
533 535
534 if __name__ == '__main__': 536 if __name__ == '__main__':
535 main(sys.argv) 537 main(sys.argv)
OLDNEW
« no previous file with comments | « bin/cbuildbot.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698