]> code.ossystems Code Review - openembedded-core.git/commit
devtool: reset: avoid errors in case file no longer exists
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 27 Apr 2015 09:53:19 +0000 (10:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Apr 2015 14:05:40 +0000 (15:05 +0100)
commitd2d352f7b747a97a54df9d20eb1455d166aa1ee3
tree587b1f93d0326a384d6a063cfd6357a3c53b62fe
parentbdbeff0cd342e31053d7203d78fc5dda611052b1
devtool: reset: avoid errors in case file no longer exists

If you manually delete files in the workspace layer (which you really
shouldn't) it was possible to get yourself into the situation where you
couldn't reset because we were attempting to check if the file had been
modified and erroring out if it couldn't be opened. If the file's not
there anymore there's not much point checking if it needs to be
preserved, just skip it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/standard.py