]> git.ipfire.org Git - pakfire.git/commitdiff
repo: Make all internal repositories virtual
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 11:10:35 +0000 (11:10 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 11:10:35 +0000 (11:10 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/repo.c

index ce1f0a680924bf60826447f12009745aaceeddce..ec198ef3d3538f32434635f3a7b443e4064bb919 100644 (file)
@@ -850,18 +850,14 @@ static int pakfire_repo_setup_appdata(struct pakfire_repo* self) {
        // Refresh Interval: Set to invalid
        appdata->refresh = -1;
 
-       // The command line repo is a virtual repository
-       if (pakfire_repo_is_commandline(self))
-               appdata->fs_layout = PAKFIRE_REPO_VIRT;
-
-       // The build result repository is virtual, too
-       else if (pakfire_string_equals(self->repo->name, PAKFIRE_REPO_RESULT))
-               appdata->fs_layout = PAKFIRE_REPO_VIRT;
-
        // The local build repository will have a flat layout
-       else if (pakfire_string_equals(self->repo->name, PAKFIRE_REPO_LOCAL))
+       if (pakfire_string_equals(self->repo->name, PAKFIRE_REPO_LOCAL))
                appdata->fs_layout = PAKFIRE_REPO_FLAT;
 
+       // Make any other internal repositories virtual
+       else if (pakfire_repo_is_internal(self))
+               appdata->fs_layout = PAKFIRE_REPO_VIRT;
+
        // All other repositories follow the UUID format
        else
                appdata->fs_layout = PAKFIRE_REPO_UUID;