]> git.ipfire.org Git - pakfire.git/commitdiff
repo: Simply scan again on forced refresh of local repos
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 16:14:05 +0000 (16:14 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 16:14:05 +0000 (16:14 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/repo.c

index d143bd5762710cc6d823ea6405badc7035bbcdfe..90db8ff44960138cda96d0253c0db9e61048424a 100644 (file)
@@ -1800,6 +1800,10 @@ int pakfire_repo_refresh(struct pakfire_repo* repo, int force) {
                return 0;
        }
 
+       // If we are forced-refreshing a local repository, we simply scan the entire thing again
+       if (force && pakfire_repo_is_local(repo))
+               return pakfire_repo_scan(repo, 0);
+
        // Refresh mirrorlist
        r = pakfire_repo_refresh_mirrorlist(repo, force);
        if (r) {