From: Michael Tremer Date: Thu, 30 Jan 2025 11:10:35 +0000 (+0000) Subject: repo: Make all internal repositories virtual X-Git-Tag: 0.9.30~267 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc7791a13cb7e2c3c5bf45dc703ced02d6800c7a;p=pakfire.git repo: Make all internal repositories virtual Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/repo.c b/src/pakfire/repo.c index ce1f0a68..ec198ef3 100644 --- a/src/pakfire/repo.c +++ b/src/pakfire/repo.c @@ -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;