diff options
author | Koushik Dutta <koushd@gmail.com> | 2011-05-29 18:45:42 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2011-05-29 18:45:42 -0700 |
commit | cf5195aa79c4cf75056bdd873e6ba6b7bd6ca36a (patch) | |
tree | 1f131cb1b715c8ab184e95c3e42da19484c1d06d /updater | |
parent | 30712302e030657bc256ce860f6db6f4946726d6 (diff) | |
download | bootable_recovery-cf5195aa79c4cf75056bdd873e6ba6b7bd6ca36a.zip bootable_recovery-cf5195aa79c4cf75056bdd873e6ba6b7bd6ca36a.tar.gz bootable_recovery-cf5195aa79c4cf75056bdd873e6ba6b7bd6ca36a.tar.bz2 |
fix boot image not flashing properly, prevent the error in the future.
Change-Id: I6163e5a519ef28e9e9ea12d5a46d525d1d9d8fb2
Diffstat (limited to 'updater')
-rw-r--r-- | updater/install.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/updater/install.c b/updater/install.c index d23ec64..8d2a5b1 100644 --- a/updater/install.c +++ b/updater/install.c @@ -36,6 +36,8 @@ #include "updater.h" #include "applypatch/applypatch.h" +#include "flashutils/flashutils.h" + #ifdef USE_EXT4 #include "make_ext4fs.h" #endif @@ -698,7 +700,7 @@ Value* WriteRawImageFn(const char* name, State* state, int argc, Expr* argv[]) { goto done; } - if (0 == restore_raw_partition(partition, filename)) + if (0 == restore_raw_partition(NULL, partition, filename)) result = strdup(partition); else result = strdup(""); |