]> git.ipfire.org Git - pakfire.git/commitdiff
pakfire: Drop the distro check
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 27 Jan 2025 15:48:44 +0000 (15:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 27 Jan 2025 15:48:44 +0000 (15:48 +0000)
I don't remember why I added this, but it is an obstruction when we
launch Pakfire in the build service without any configuration just to
open an archive or something like that.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/pakfire.c

index e767329401c8a9656d221351524525e70f0184fe..4faecaf431e9a32e869785809978b2454cb83471 100644 (file)
@@ -996,13 +996,6 @@ int pakfire_create(struct pakfire** pakfire, struct pakfire_ctx* ctx,
        if (*p->distro.slogan)
                DEBUG(p->ctx, "    slogan     = %s\n", p->distro.slogan);
 
-       // Check if the distribution has been configured
-       if (!*p->distro.id || !*p->distro.version_id) {
-               ERROR(p->ctx, "Invalid distribution configuration\n");
-               r = -EINVAL;
-               goto ERROR;
-       }
-
        // Bump RLIMIT_NOFILE to maximum
        r = pakfire_rlimit_set(p->ctx, PAKFIRE_RLIMIT_NOFILE_MAX);
        if (r)