]> git.ipfire.org Git - pakfire.git/commitdiff
repo: Increase subpriority for commandline repositories
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Sep 2023 09:12:25 +0000 (09:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Sep 2023 09:12:25 +0000 (09:12 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/repo.c

index fe6db599953562742ab461e33df14bfe828e2c69..f203b0d35160c91112a0889e48722e3ac6ab95f2 100644 (file)
@@ -119,6 +119,11 @@ static void pakfire_repo_update_subpriority(struct pakfire_repo* repo) {
        if (pakfire_repo_is_local(repo))
                repo->repo->subpriority = 1;
 
+       // Packages in the commandline repository would have either been local
+       // or downloaded in order to read them, so they should be preferred, too.
+       else if (pakfire_repo_is_commandline(repo))
+               repo->repo->subpriority = 1;
+
        // Otherwise reset
        else
                repo->repo->subpriority = 0;