Special-case preflight clean to allow for missing directories.

If there's no directory, I guess things are really, really clean.

BUG=chromium-os:9197
TEST=Ran cros_mark_as_stable.py clean with missing overlay directories.

Change-Id: I3f4811fe01bca56e850f823a973476884292e278

Review URL: http://codereview.chromium.org/4988004
This commit is contained in:
David James 2010-11-15 18:09:10 -08:00
parent 4e75efa930
commit f7502a6e03

View File

@ -496,7 +496,7 @@ def main(argv):
if gflags.FLAGS.overlays: if gflags.FLAGS.overlays:
overlays = {} overlays = {}
for path in gflags.FLAGS.overlays.split(':'): for path in gflags.FLAGS.overlays.split(':'):
if not os.path.isdir(path): if command != 'clean' and not os.path.isdir(path):
Die('Cannot find overlay: %s' % path) Die('Cannot find overlay: %s' % path)
overlays[path] = [] overlays[path] = []
else: else: