OSDN Git Service

retry patch using cache if in-place write fails
authorDoug Zongker <dougz@android.com>
Tue, 2 Feb 2010 16:44:12 +0000 (08:44 -0800)
committerDoug Zongker <dougz@android.com>
Tue, 2 Feb 2010 16:44:12 +0000 (08:44 -0800)
commitcdb621bfea3083afbea238dbf374826742aca6d0
tree3a9db3040ae436bbe23d61a124e775b2f1808b82
parent25a331ab870edcf31dbbfab0a9e6f4cef88654f5
retry patch using cache if in-place write fails

[cherry-pick from donut branch]

Instead of failing outright when yaffs lies about how much space is
free on the filesystem, delete the partially-written output file and
retry using the copy-source-to-cache method instead.

Change all the log statements to printf; mixing stdout and stderr
logging just makes the logs hard to read because they're buffered
differently.
tools/applypatch/applypatch.c
tools/applypatch/freecache.c
tools/applypatch/imgdiff.c
tools/applypatch/imgpatch.c
tools/applypatch/main.c