Skip to content

A rootless Android app that boots Alpine Linux: run containers (Podman/Docker/LXC) and GUI desktop apps.

fix: stop showing "update available" for x.y.z-debug ↔ x.y.z

ExTv5e64a802022e
diff --git a/app/src/main/java/com/excp/podroid/data/repository/UpdateRepository.kt b/app/src/main/java/com/excp/podroid/data/repository/UpdateRepository.kt
index 8ec4166..5a55a52 100644
--- a/app/src/main/java/com/excp/podroid/data/repository/UpdateRepository.kt
+++ b/app/src/main/java/com/excp/podroid/data/repository/UpdateRepository.kt
@@ -52,7 +52,10 @@ class UpdateRepository @Inject constructor(
context.dataStore.edit { it[lastCheckKey] = now }
- if (isNewer(tag, currentVersion)) UpdateInfo(tag, url) else null
+ // Build-type suffix (`-debug`) is decoration, not a prerelease — strip it so
+ // 1.1.7-debug compares equal to the 1.1.7 release tag instead of "older".
+ val normalizedCurrent = currentVersion.removeSuffix("-debug")
+ if (isNewer(tag, normalizedCurrent)) UpdateInfo(tag, url) else null
} catch (_: Exception) {
null
}