diff options
author | Doug Zongker <dougz@android.com> | 2010-09-14 18:06:55 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2010-09-14 21:26:38 -0700 |
commit | 8e5e4dada713609c9b2c45ea9cf4572bb89ef761 (patch) | |
tree | b1dd9d0f6408811e71dade4f1ccbc52f18114a5e /updater | |
parent | d12560aa2134d3af21a1220cd4873553f9c51743 (diff) | |
download | bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.zip bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.tar.gz bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.tar.bz2 |
close update package before installing; allow remount
Close the update package before invoking the binary, to allow the
installer to unmount /cache if it wants to. Add a function to allow
remounting of a mount as read-only.
Change-Id: Idfcc96c3da66083295177f729263560be58034e4
Diffstat (limited to 'updater')
-rw-r--r-- | updater/updater.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/updater/updater.c b/updater/updater.c index 6537a94..aa626d2 100644 --- a/updater/updater.c +++ b/updater/updater.c @@ -136,7 +136,9 @@ int main(int argc, char** argv) { free(result); } - mzCloseZipArchive(&za); + if (updater_info.package_zip) { + mzCloseZipArchive(updater_info.package_zip); + } free(script); return 0; |