From nobody Sun Feb 8 19:59:01 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 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=1686556555; cv=none; d=zohomail.com; s=zohoarc; b=fuLuUwMXgxuU55D66F3W92AI7wyju20levxEOjXhzIMTUVJ+UhDkrCfN5dJ9sQ+gmuXk7wyeVmEvL4Cebxbou/q/IHh9Id+nbKcNBq5R8U2fnQlHKaQj1edb5yuJ0zh2S7flFbx94PzL7dHRE1e9ewSKcttBVjDJsG9nUDxdaQQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686556555; 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=I6WNWeg/ORGXuXtRNPCoTbDCyFXRgvwSVCIDmw0oB/k=; b=j1DQciTHrKb6LIenotzl9DsHomnnXdvgWjTxyLD1MzbsOJcpxMeZva80Iw/tQdBwxI+jQm5Oe4dTmKsVIe4tAKv9lBfkK/QTVw8t7CsVK/4R9CU13YOKdPS09OIh8UyXeZJWBnoAzKZGPIATRBhDPecL+k4rkU0C+1EVen6fokg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1686556555464703.7384915333901; Mon, 12 Jun 2023 00:55:55 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-528-1-ltPsOvM4mybzGAYuKyDw-1; Mon, 12 Jun 2023 03:55:50 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8B47E8030D3; Mon, 12 Jun 2023 07:55:48 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id D5170492CA6; Mon, 12 Jun 2023 07:55:47 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id B344B19465A3; Mon, 12 Jun 2023 07:55:45 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7DFA9194658C for ; Mon, 12 Jun 2023 07:55:44 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 508E4C1604D; Mon, 12 Jun 2023 07:55:44 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast08.extmail.prod.ext.rdu2.redhat.com [10.11.55.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4899EC1604C for ; Mon, 12 Jun 2023 07:55:44 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 21F7938173C3 for ; Mon, 12 Jun 2023 07:55:44 +0000 (UTC) Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-557-Etc-Ey6vPIWduYUUkXD-rA-1; Mon, 12 Jun 2023 03:55:42 -0400 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-977d4b0d9e3so338610466b.0 for ; Mon, 12 Jun 2023 00:55:42 -0700 (PDT) Received: from wheatley.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id p4-20020a17090628c400b00977ca819248sm4763848ejd.110.2023.06.12.00.55.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 00:55:41 -0700 (PDT) Received: from wheatley.. (wheatley.k8r.cz [127.0.0.1]) by wheatley.localdomain (Postfix) with ESMTP id 9162211B85755 for ; Mon, 12 Jun 2023 09:55:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686556554; 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=I6WNWeg/ORGXuXtRNPCoTbDCyFXRgvwSVCIDmw0oB/k=; b=ejsTGjPXQgNNQH3EGiNzN6piJUkB7XJdABl0qklxAlQK2Gc1PVjDHuWg1a0RuiRMHkavCj 7BB0DlIYfaw59S8uMm8MnlWN8IXHajJ/Sau3hQs/w5VXzBxpkWAZUxK3CcEWy3hggh8M24 8GkzwX/FQWC/nVQfBe3X66PTHdZOvDw= X-MC-Unique: 1-ltPsOvM4mybzGAYuKyDw-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: Etc-Ey6vPIWduYUUkXD-rA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686556541; x=1689148541; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=I6WNWeg/ORGXuXtRNPCoTbDCyFXRgvwSVCIDmw0oB/k=; b=WMekijDZjcRCE6o7d6sQw2P9KiZGMyR54kkhoGErGGAwnbEHoxTbWWDwGOo/ph5P4t Paz8JRO38WjfXEOOAZF3WvJdjfeNO9dFgCe4BknIjgTTU1kGTaYovJk+lErCdEQMBIBR ZoMGwHTv96Ma8MCkQlnWrGgpxRGZJApxsinyVwKavCcpByfDSqpSJPWl+6z82K8RI3xt 7l7WXNqVj5X8V5eJ5P55/qddUFozb2WgJkNdGItSN+NfXb7BsTFz7K1K6yHJDeIQFg6M GbwALV9mvOOwoYgkVpkiqIY+U9JRCoWpPyGCB8QHsIJNO5fbd/vXDv9LveRdjJI7VtrE HsQA== X-Gm-Message-State: AC+VfDzfFSEWCvvCSJTC/7Vd8Rk6t2oXwK5aD4njA0dzWPs0Cholv2He qHCdd5rKGLzNQI/qMFbeFDlfNnnJ1199+7OzbfO6qZPrqyFKwno0+hyvSIIh2jAjGP6M2nKoLWM S/VFpbUGMgJOPQGacRDPSoCfysq0c/n3Hdww8LgWDilzSboczwbmtSmGywlqHSckDAlm3XPG/eR GDlN41tg== X-Received: by 2002:a17:907:728f:b0:973:d43f:5fdf with SMTP id dt15-20020a170907728f00b00973d43f5fdfmr8042879ejc.61.1686556541794; Mon, 12 Jun 2023 00:55:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6uGTdbPfdC6NDmk9O2JGStocXa6khyxrm7pZYxsZtq6fXv64/Nux7/a3SYOEbll+8QdXzJFw== X-Received: by 2002:a17:907:728f:b0:973:d43f:5fdf with SMTP id dt15-20020a170907728f00b00973d43f5fdfmr8042871ejc.61.1686556541598; Mon, 12 Jun 2023 00:55:41 -0700 (PDT) From: Martin Kletzander To: libvir-list@redhat.com Subject: [PATCH 4/4] meson-dist: Use shutil.copy for copying a file Date: Mon, 12 Jun 2023 09:55:37 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1686556557236100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Using os.system("cp {0} {1}".format(...)) has two issues, it does not work on Windows, but more importantly it can cause issues in case one of the directories has a space in it. Signed-off-by: Martin Kletzander --- scripts/meson-dist.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/meson-dist.py b/scripts/meson-dist.py index a1d36c2533da..1c2364f6b67e 100755 --- a/scripts/meson-dist.py +++ b/scripts/meson-dist.py @@ -2,13 +2,12 @@ =20 import os import sys +import shutil =20 meson_build_root =3D sys.argv[1] file_name =3D sys.argv[2] =20 meson_dist_root =3D os.environ['MESON_DIST_ROOT'] =20 -os.system('cp {0} {1}'.format( - os.path.join(meson_build_root, file_name), - os.path.join(meson_dist_root, file_name) -)) +shutil.copy(os.path.join(meson_build_root, file_name), + os.path.join(meson_dist_root, file_name)) --=20 2.41.0