Merge branch 'log-error-to-port' into 'master'

log error if ROM hasn't ported additional_repos.xml to JSON

See merge request fdroid/fdroidclient!1685
This commit is contained in:
Michael Pöhn
2026-07-09 08:34:22 +00:00

View File

@@ -42,6 +42,11 @@ class RepoPreLoader(
val romRepos = tryLoadRepositoriesFromFile("$root/etc/$subdir/additional_repos.json")
if (romRepos.isNotEmpty()) {
addRepositories(db.getRepositoryDao(), romRepos)
} else {
val xmlFile = "$root/etc/$subdir/additional_repos.xml"
if (fileFactory(xmlFile).isFile) {
log.error { "Old format not ported to JSON ($xmlFile)! See https://f-droid.org/2026/03/28/how-to-include-repos-in-rom.html" }
}
}
}
}