[db] New repos now get lower weight than older ones

so they do not override the information from older repos anymore. This is especially an issue for the official repo which historically had the lowest priority while it should have the highest.
This commit is contained in:
Torsten Grote
2023-11-03 11:22:42 -03:00
parent d9ea1e154b
commit b993da8db8
9 changed files with 59 additions and 36 deletions

View File

@@ -100,7 +100,7 @@ internal class RepoAdderTest {
val userManager = mockk<UserManager>()
val repoAdder = RepoAdder(context, db, tempFileProvider, downloaderFactory, httpManager)
every { context.getSystemService("user") } returns userManager
every { context.getSystemService(UserManager::class.java) } returns userManager
every {
userManager.hasUserRestriction(DISALLOW_INSTALL_UNKNOWN_SOURCES)
} returns true