Update srcroot to be an absolute path.

This is required so that paths still work after we change directories.
Currently our branch builder uses this broken recipe :(

BUG=none
TEST=Check that "./cros_mark_as_stable.py -r .. clean" cleans both the private overlay and chromiumos-overlay

Change-Id: Ie4047fb091bf7af36dc28482ea73b085ec12893c

Review URL: http://codereview.chromium.org/4175004
This commit is contained in:
David James 2010-10-26 15:17:48 -07:00
parent a8860e4572
commit af35e5c5f0

View File

@ -174,6 +174,7 @@ def _CheckSaneArguments(package_list, command):
_PrintUsageAndDie('Please specify a board') _PrintUsageAndDie('Please specify a board')
if not os.path.isdir(gflags.FLAGS.srcroot): if not os.path.isdir(gflags.FLAGS.srcroot):
_PrintUsageAndDie('srcroot is not a valid path') _PrintUsageAndDie('srcroot is not a valid path')
gflags.FLAGS.srcroot = os.path.abspath(gflags.FLAGS.srcroot)
def _Clean(): def _Clean():