From: Michael Tremer Date: Mon, 27 Jan 2025 15:48:44 +0000 (+0000) Subject: pakfire: Drop the distro check X-Git-Tag: 0.9.30~351 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=832031bc2727724b4d6d2f8baaad68152c364df2;p=pakfire.git pakfire: Drop the distro check 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 --- diff --git a/src/pakfire/pakfire.c b/src/pakfire/pakfire.c index e7673294..4faecaf4 100644 --- a/src/pakfire/pakfire.c +++ b/src/pakfire/pakfire.c @@ -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)