We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c498099 commit 442f98cCopy full SHA for 442f98c
1 file changed
src/jsMain/kotlin/net/kautler/github/action/setup_wsl/Distribution.kt
@@ -210,7 +210,13 @@ abstract class AptGetBasedDistribution : Distribution {
210
}
211
212
override suspend fun update() {
213
- refresh()
+ update(true)
214
+ }
215
+
216
+ protected suspend fun update(refresh: Boolean) {
217
+ if (refresh) {
218
+ refresh()
219
220
exec(
221
commandLine = "wsl",
222
args = arrayOf(
@@ -302,7 +308,14 @@ object Debian : AptGetBasedDistribution(
302
308
version = SemVer("1.0.0"),
303
309
downloadUrl = URL("https://aka.ms/wsl-debian-gnulinux"),
304
310
installerFile = "debian.exe"
305
-)
311
+) {
312
+ override suspend fun update() {
313
314
+ retry(5) {
315
+ update(false)
316
317
318
+}
306
319
307
320
object Kali : AptGetBasedDistribution(
321
wslId = "MyDistribution",
0 commit comments