Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b672af7 authored by Arnau Vàzquez's avatar Arnau Vàzquez
Browse files

Merge branch 'same-build-fix' into 'master'

Updated checkVersion to not return builds with same timestamp

See merge request e/os/LineageOTA!18
parents c0198a26 4ee294c3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -183,8 +183,8 @@
                return true;
            } // Valid build if no current build specified
            
            if ($currentBuild->getTimestamp() > $this->getTimestamp()) {
                return false; // Invalid build if timestamp older
            if ($currentBuild->getTimestamp() >= $this->getTimestamp()) {
                return false; // Invalid build if timestamp older or equal(same build invalid)
            }

            return(version_compare($currentBuild->getVersion(), $this->getVersion(),  "<="));