From patchwork Thu Oct 21 09:10:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Adri=C3=A1n_Moreno?= X-Patchwork-Id: 1544224 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=cq5Ssaci; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HZhYD6JRXz9sRR for ; Thu, 21 Oct 2021 20:11:12 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id B443160ED2; Thu, 21 Oct 2021 09:11:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2bRlyrmmSWva; Thu, 21 Oct 2021 09:11:06 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp3.osuosl.org (Postfix) with ESMTPS id D0F6E60EBB; Thu, 21 Oct 2021 09:11:05 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id AE31AC001C; Thu, 21 Oct 2021 09:11:05 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 16C3EC0011 for ; Thu, 21 Oct 2021 09:11:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id F073160EC3 for ; Thu, 21 Oct 2021 09:11:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1Y1lpD36QYU0 for ; Thu, 21 Oct 2021 09:11:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id 452F460EC1 for ; Thu, 21 Oct 2021 09:11:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634807463; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x3LwMQ3EG8p6Lu8/ppzMktiuaX+GXCNkwQi34Icss3w=; b=cq5SsaciJYDRtnyV//2ISl3+gKCkpjtaPBlTcOrqmaSc/DNHEcPWk3h0ogL7rq3A07DZJ2 yOdhKT+vPXCccl46AfB1NVrzXYfc7grEmcNS9eUusVyASQPbNxSXbjwLEy/5PgiCBEn3fj jAQUBN3sZe6/quOCkVbi8/nHEStYrvM= 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-292-mqFW8H2GO-uSMeagBMN0SA-1; Thu, 21 Oct 2021 05:11:02 -0400 X-MC-Unique: mqFW8H2GO-uSMeagBMN0SA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8A3E01006AA9; Thu, 21 Oct 2021 09:11:00 +0000 (UTC) Received: from amorenoz.users.ipa.redhat.com (unknown [10.39.194.83]) by smtp.corp.redhat.com (Postfix) with ESMTP id DD054E2C9; Thu, 21 Oct 2021 09:10:58 +0000 (UTC) From: Adrian Moreno To: dev@openvswitch.org Date: Thu, 21 Oct 2021 11:10:06 +0200 Message-Id: <20211021091007.460641-5-amorenoz@redhat.com> In-Reply-To: <20211021091007.460641-1-amorenoz@redhat.com> References: <20211021091007.460641-1-amorenoz@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=amorenoz@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: blp@ovn.org, horms@debian.org, dceara@redhat.com Subject: [ovs-dev] [PATCH ovn v1 4/5] ovn-detrace: expose version as global variable X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" That way importers can check it to determine whether a particular feature exists or not. Signed-off-by: Adrian Moreno Acked-by: Dumitru Ceara --- utilities/ovn_detrace.py.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utilities/ovn_detrace.py.in b/utilities/ovn_detrace.py.in index d26efbd16..570119d5a 100755 --- a/utilities/ovn_detrace.py.in +++ b/utilities/ovn_detrace.py.in @@ -36,7 +36,7 @@ except Exception: argv0 = sys.argv[0] - +version = "@VERSION@" def usage(): print("""\ @@ -415,7 +415,7 @@ def main(): if key in ['-h', '--help']: usage() elif key in ['-V', '--version']: - print("%s (OVN) @VERSION@" % argv0) + print("%s (OVN) %s" % (argv0, version)) elif key in ['--ovnsb']: ovnsb_db = value elif key in ['--ovnnb']: