diff options
author | Tianjie Xu <xunchang@google.com> | 2016-09-02 00:10:59 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-09-02 00:10:59 +0200 |
commit | e397277ee94bc92dbd0c31e9bc8eb63889cede85 (patch) | |
tree | 5e7cad7e722922fe170af78444bb8223408c9c93 /install.cpp | |
parent | Switch recovery to libbase logging (diff) | |
parent | Fix a typo of variable name in install.cpp (diff) | |
download | android_bootable_recovery-e397277ee94bc92dbd0c31e9bc8eb63889cede85.tar android_bootable_recovery-e397277ee94bc92dbd0c31e9bc8eb63889cede85.tar.gz android_bootable_recovery-e397277ee94bc92dbd0c31e9bc8eb63889cede85.tar.bz2 android_bootable_recovery-e397277ee94bc92dbd0c31e9bc8eb63889cede85.tar.lz android_bootable_recovery-e397277ee94bc92dbd0c31e9bc8eb63889cede85.tar.xz android_bootable_recovery-e397277ee94bc92dbd0c31e9bc8eb63889cede85.tar.zst android_bootable_recovery-e397277ee94bc92dbd0c31e9bc8eb63889cede85.zip |
Diffstat (limited to 'install.cpp')
-rw-r--r-- | install.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/install.cpp b/install.cpp index 4afa15c1d..4a856cd71 100644 --- a/install.cpp +++ b/install.cpp @@ -184,19 +184,19 @@ static int check_newer_ab_build(ZipArchive* zip) } // Check for downgrade version. - int64_t build_timestampt = property_get_int64( + int64_t build_timestamp = property_get_int64( "ro.build.date.utc", std::numeric_limits<int64_t>::max()); - int64_t pkg_post_timespampt = 0; + int64_t pkg_post_timestamp = 0; // We allow to full update to the same version we are running, in case there // is a problem with the current copy of that version. if (metadata["post-timestamp"].empty() || !android::base::ParseInt(metadata["post-timestamp"].c_str(), - &pkg_post_timespampt) || - pkg_post_timespampt < build_timestampt) { + &pkg_post_timestamp) || + pkg_post_timestamp < build_timestamp) { if (metadata["ota-downgrade"] != "yes") { LOG(ERROR) << "Update package is older than the current build, expected a build " - "newer than timestamp " << build_timestampt << " but package has " - "timestamp " << pkg_post_timespampt << " and downgrade not allowed."; + "newer than timestamp " << build_timestamp << " but package has " + "timestamp " << pkg_post_timestamp << " and downgrade not allowed."; return INSTALL_ERROR; } if (pkg_pre_build_fingerprint.empty()) { |