| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |