mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-07-30 09:06:35 -04:00
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:
@@ -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" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user