Merge branch 'gabr/StopOnVerifyFailure' into 'master'

Don't try to install if verifyFile fails

See merge request AuroraOSS/AuroraStore!550
This commit is contained in:
Aayush Gupta
2026-05-01 14:48:02 +08:00

View File

@@ -192,7 +192,7 @@ class DownloadWorker @AssistedInject constructor(
files.forEach { file -> require(verifyFile(file)) }
} catch (exception: Exception) {
Log.e(TAG, "Failed to verify ${download.packageName}", exception)
onFailure(VerificationFailedException())
return onFailure(VerificationFailedException())
}
Log.i(TAG, "Finished downloading & verifying ${download.packageName}")