From nobody Sun Feb 8 16:35:51 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1571736607; cv=none; d=zoho.com; s=zohoarc; b=W8zAiDxxWawwDkfp55H8XU5s0k3RtTwVRI7lWeoYFpwXjs+naAu0t7QYH/S8W/wRwieHg597v2dHD4vtuODroMBPdnKm4ejnVlf5q7ljq/DPBuehMumRwtYQIjyhQpXgW1CaTrS3SjRfDJp/23432OIzGZsn92hfvpYzqSVsANE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571736607; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=UtWB+X0lMK8jqjehqnDHu6SV0TNpHqmwEg1amU/TVGc=; b=jYjSsxlzPyGV6rZaA0NOFLvh+88qm4F1JFZU4WM6KrFdWgWT0n0Sij2B4/lgRrzit89ZpoBkHWy9jNDplSv3BlcyQ9N7VeehWmfpFkSV5BWoWFBiCoxVPDrGobMhh63l5Ym5YtUcbhSv1EOSXbczLPePo0FmHgZKspuQDPZO8Hc= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1571736607741851.5084105132112; Tue, 22 Oct 2019 02:30:07 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-150-498m1Y85Ocy3v3AAm3ukVQ-1; Tue, 22 Oct 2019 05:29:10 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A27701800D6A; Tue, 22 Oct 2019 09:29:05 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 783141001B33; Tue, 22 Oct 2019 09:29:05 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 365C63FB44; Tue, 22 Oct 2019 09:29:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x9L8150W002450 for ; Mon, 21 Oct 2019 04:01:05 -0400 Received: by smtp.corp.redhat.com (Postfix) id 19C621001938; Mon, 21 Oct 2019 08:01:05 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.43.2.63]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8DCD01001B11 for ; Mon, 21 Oct 2019 08:01:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571736606; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=UtWB+X0lMK8jqjehqnDHu6SV0TNpHqmwEg1amU/TVGc=; b=Cw8PJMxRAKrEaIb/uJdbQ4xUj5K2Qk0ZrL4EETeSUZvx5u2pSKI9mQcEgjpdXWRxDSol4Q 4+MEMBalb7L9l91lPjUDVpuhqdDeFMjCHLNKpUg8lvhKX6xh3T/nEe9wxDdYDTg7xpD9Dy w/YihdQrCEPoiYf1KmX5p9Pb0TTEAD4= From: Pavel Hrdina To: libvir-list@redhat.com Date: Mon, 21 Oct 2019 10:00:35 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 10/25] docs: apibuild: remove old code paths X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-MC-Unique: 498m1Y85Ocy3v3AAm3ukVQ-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" There is no need to keep old compatibility code around as it it will never be used in our current source tree. Signed-off-by: Pavel Hrdina Reviewed-by: J=C3=A1n Tomko --- docs/apibuild.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/docs/apibuild.py b/docs/apibuild.py index e79ead0b53..d3d0be2d83 100755 --- a/docs/apibuild.py +++ b/docs/apibuild.py @@ -2543,25 +2543,15 @@ class app: builder =3D None srcdir =3D os.path.abspath((os.environ["srcdir"])) builddir =3D os.path.abspath((os.environ["builddir"])) - if srcdir =3D=3D builddir: - builddir =3D None if glob.glob(srcdir + "/../src/libvirt.c") !=3D []: if not quiet: print("Rebuilding API description for %s" % name) dirs =3D [srcdir + "/../src", srcdir + "/../src/admin", srcdir + "/../src/util", - srcdir + "/../include/libvirt"] - if (builddir and - not os.path.exists(srcdir + "/../include/libvirt/libvirt-c= ommon.h")): - dirs.append(builddir + "/../include/libvirt") + srcdir + "/../include/libvirt", + builddir + "/../include/libvirt"] builder =3D docBuilder(name, srcdir, dirs, []) - elif glob.glob("src/libvirt.c") !=3D []: - if not quiet: - print("Rebuilding API description for %s" % name) - builder =3D docBuilder(name, srcdir, - ["src", "src/util", "include/libvirt"], - []) else: self.warning("rebuild() failed, unable to guess the module") return None --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list