diff options
author | nea <romangraef@gmail.com> | 2022-08-27 15:41:16 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-08-27 15:41:16 +0200 |
commit | d9353ff54c20a08e4e078e0190fc1f364b08a2d1 (patch) | |
tree | cbff878e3d4ebbf943b2ebc732a8bbbcce74ff10 /src/main/kotlin/moe/nea/notenoughupdates/repo/RepoDownloadManager.kt | |
parent | 2019473c50dfe3f1c6fd071d123d49d43bc180c4 (diff) | |
download | firmament-d9353ff54c20a08e4e078e0190fc1f364b08a2d1.tar.gz firmament-d9353ff54c20a08e4e078e0190fc1f364b08a2d1.tar.bz2 firmament-d9353ff54c20a08e4e078e0190fc1f364b08a2d1.zip |
translation
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/repo/RepoDownloadManager.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/notenoughupdates/repo/RepoDownloadManager.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/notenoughupdates/repo/RepoDownloadManager.kt b/src/main/kotlin/moe/nea/notenoughupdates/repo/RepoDownloadManager.kt index 34279af..c354392 100644 --- a/src/main/kotlin/moe/nea/notenoughupdates/repo/RepoDownloadManager.kt +++ b/src/main/kotlin/moe/nea/notenoughupdates/repo/RepoDownloadManager.kt @@ -69,7 +69,7 @@ object RepoDownloadManager { * Downloads the latest repository from github, setting [latestSavedVersionHash]. * @return true, if an update was performed, false, otherwise (no update needed, or wasn't able to complete update) */ - suspend fun downloadUpdate(): Boolean = withContext(CoroutineName("Repo Update Check")) { + suspend fun downloadUpdate(force: Boolean): Boolean = withContext(CoroutineName("Repo Update Check")) { val latestSha = requestLatestGithubSha() if (latestSha == null) { logger.warn("Could not request github API to retrieve latest REPO sha.") |