jlebar/gaia — pull request #1 by vingtetun (2012-04-19 15:13:26+00:00)
Title: Do not use 'f' for rm

There is still an error (i have tried on 2 differents Nexus S). It seems like the /cache/ dir on the devive contains a /cache/lost+found directory that refuse to be deleted even if it is empty.

The folder is realy empty but for some reasons if refuses to be removed.

adb start-server
adb shell rm -r /cache/*
rm failed for /cache/lost+found, Directory not empty
python build/install-gaia.py "adb"
Traceback (most recent call last):
File "build/install-gaia.py", line 152, in
install_gaia()
File "build/install-gaia.py", line 140, in install_gaia
install_gaia_slow()
File "build/install-gaia.py", line 131, in install_gaia_slow
adb_shell("rm -r /cache/*")
File "build/install-gaia.py", line 63, in adb_shell
raise Exception('adb shell "%s" did not complete successfully. Output:\n%s' % (cmd, stdout))
Exception: adb shell "rm -r /cache/*" did not complete successfully. Output:
rm failed for /cache/lost+found, Directory not empty
RETURN CODE: 255