From patchwork Fri Dec 20 11:26:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Herbrechtsmeier X-Patchwork-Id: 54443 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 552BAE7718F for ; Fri, 20 Dec 2024 11:26:41 +0000 (UTC) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.106]) by mx.groups.io with SMTP id smtpd.web11.149743.1734693991344736713 for ; Fri, 20 Dec 2024 03:26:35 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@weidmueller.com header.s=selector2 header.b=Yg8YWHwT; spf=pass (domain: weidmueller.com, ip: 40.107.22.106, mailfrom: stefan.herbrechtsmeier-oss@weidmueller.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jX/BGaZI3emQ1O30/5z9eAoR5JuKmzVS2F9WdYC8AKX+cfavTFs36U6YPaGbME4gw2kkSdOiFehq9ZWnDeWGQqc9r0SY1slqnsCoQkI2mZqzjoJGX+LxCc3v/CeFH2lVNKqTedo+S70AAeJzMDlGjmHURu3FMemS9GzUxKQP0lM1HQbFmmQFDwg1tLZvhSFYcH3nbe4GFUKzjI3gySqOSFLNI8ECwvYy9CZpC42Z3/GVPqvz5K9muIIFOkXxvSwWiWXLYezY6nhMp1Icz88SYMWaqjZ9PBpr3HwFPsCFplD1tMSqK7uM1guX6VJ/r4I3rj3B6riAXX7DUF8wo+WzHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lLkihzEIyZkYbf8tBr7koBGCxXvyngDqbEgVCGtUo80=; b=Hb7KsFFaaOK1Jyj821Ef8g65RPoVMpm1bd7WxYlcyY6ET7gzPEdoRBPkDssj2LiyXDpsvZjV2PWkjYQz57poyf8RKYSFsae2Q1aKxtC1x5qwtUmjY+Ke6Oy6JjWKactOF7lkmBZMOJTuU395swxrbo8dUe5UYwtGA9algc64h4IVrfz3F3MjKFpVc8dTa3SOjm7oXXDtx+DcHHGDwNBLuhKcR74lFHqfqqGN4SupP/zN5wdY5kHzpYOF8mIohgCmoYYdQfN8QmZvowRKrGR+ikuJnwHX2PTnwh/wQYrFNP0yGbkhb3euLFOBHGKb3cSqcObm4C9jFLY6Ms5IJnADrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=weidmueller.com; dmarc=pass action=none header.from=weidmueller.com; dkim=pass header.d=weidmueller.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=weidmueller.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lLkihzEIyZkYbf8tBr7koBGCxXvyngDqbEgVCGtUo80=; b=Yg8YWHwT705Fkybtk7Eaoge0Crdfo1NhA8KZtmTOcn8sHHctvDEOxdC4XkMNCwyH8PjfHVH0WNKHqzwotZGRxbK/LWvuLlkR8Cph7g71zvcgWaIg5Rfi4HwQv92bfrK2+hHc07w9Z9sSAsOWFSAYI1SBLJRD4W/hXX3FZDDaH7n7D6Q90zWHzLCu8Hw5EeMUgNoCCvtVtpqfkg7ggfP8FtUVyYsA6kiUnjxuo4D6oOVe1yxOYlD2ISj9osYC+F7Rk/qYQnlHpdnfRGegrJ8C2x/aNoDxw/LSvgCOIKNB2UkG3Cx7QNSaZflcmXfAnsmWIRCz9zCIlEUA79mjjLyyYQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=weidmueller.com; Received: from PAXPR08MB6969.eurprd08.prod.outlook.com (2603:10a6:102:1d8::23) by DU0PR08MB8256.eurprd08.prod.outlook.com (2603:10a6:10:410::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.14; Fri, 20 Dec 2024 11:26:27 +0000 Received: from PAXPR08MB6969.eurprd08.prod.outlook.com ([fe80::3b1:b329:1ed9:dad4]) by PAXPR08MB6969.eurprd08.prod.outlook.com ([fe80::3b1:b329:1ed9:dad4%3]) with mapi id 15.20.8272.013; Fri, 20 Dec 2024 11:26:27 +0000 From: Stefan Herbrechtsmeier To: bitbake-devel@lists.openembedded.org CC: Stefan Herbrechtsmeier Subject: [RFC PATCH 09/21] fetch2: add destdir to FetchData Date: Fri, 20 Dec 2024 12:26:00 +0100 Message-ID: <20241220112613.22647-10-stefan.herbrechtsmeier-oss@weidmueller.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241220112613.22647-1-stefan.herbrechtsmeier-oss@weidmueller.com> References: <20241220112613.22647-1-stefan.herbrechtsmeier-oss@weidmueller.com> X-ClientProxiedBy: FR0P281CA0106.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a8::7) To PAXPR08MB6969.eurprd08.prod.outlook.com (2603:10a6:102:1d8::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR08MB6969:EE_|DU0PR08MB8256:EE_ X-MS-Office365-Filtering-Correlation-Id: ae3f3697-4e20-47d8-be7e-08dd20e92492 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: E1DwSfG1kl9aXqnnTtj5dppDIEo5JQU2snpq2vLV1z/qS2i0Of2aOkCIJGWR/sAX+N/Sf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p3yjdLFcYB+tj2UyCmS032SdSO0IYi+6JMNu9keA5pc4Woe3SQJFPUCwt6l0DfZ/jQ21OQC6XM1EoEINutDtW7ggEX8t+A4Bbzhs3uRN0RMcRx6lff65jDPqt+3bBruIEpjrj2x4sp9TCKfX0wIGeShMr8pbj+dLcOUETIEuBQWYzGV4LH5SPuRiBYMRJhzmxOZ90YSlm7NbA6nYcXo4Cq4Onoab3WtX+KoKlcII4XoHS8lD9UhG/UFa9JqvJK1e0bvQJcghvZOdPJEd25r6N+wXyuPF6EVqPUBYZr2+KmmOByy X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR08MB6969.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(1800799024)(376014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nQZpKVDYs/FAWebug8BIZtMPB8AO9pR3GKDsn4TCwJqbFlQ3KgmGzDLasj/PMyip/zeDNun6PHc0/9XKz7JSWQKAxeYlMXf+uRpftPDqbNEIIqvvNNmk0gbHUCX3y3ODeFEHWdeE8DO5wkfwfdDiFT//Nb24khKyq+JccZocUw2uSOjzz/wTd7QrbcbsNDLmJMLePN33xEfDkjFQtt8oxDkuo9bV23wgOo3LgdXOJCYY2QUHLxW3+l+i1nbZ5jx3zAGmuC6PcMqY71FZUzB57XtbuwHm/05Re9/RivogWiJUhfNmrV3Cqd5bHtvqEz74Pj7FUPC0PY6rLNcVynF+ogILOhiKFol1aL0BHz4G7ytRh7pGs/p4BYPp7repMLPPjck+Midci0gTo/njn5QVMZMpcbNuxqVF5OxpckjW6/PiDizYJJ9gCWge8+e39xOSq8f7L871SSAvI6bHu93sbarzhufSmcqGNKnedW05yarRKGUHC7dIvy0nUkrAZuLGItrcGc+OGH31+mw6MHQqmO65e/AKb0d0jEFXSnTrer7T+cY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rossTenant-Network-Message-Id: ae3f3697-4e20-47d8-be7e-08dd20e92492 X-MS-Exchange-CrossTenant-AuthSource: PAXPR08MB6969.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2024 11:26:27.0621 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e4289438-1c5f-4c95-a51a-ee553b8b18ec X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 7hQxQR5XeNX1KhJg6/aa3iP5B9aki313tXEhn6JZoPLcaZ8iRDWSFAuYp3ryUMY8bQDg/6Xrh4fRV8sybeGFTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8256 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 20 Dec 2024 11:26:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/16931 From: Stefan Herbrechtsmeier Add a `destdir` variable to the `FetchData` class to record destination directory of unpack method. Users of the `FetchData` class can use the directory to unpack additional content into the directory. The git fetcher class already records the destination directory in `destdir` class variable of `FetchData`. Signed-off-by: Stefan Herbrechtsmeier --- lib/bb/fetch2/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 0c2d6d73e..3a7030bf3 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -1314,6 +1314,7 @@ class FetchData(object): if not self.pswd and "pswd" in self.parm: self.pswd = self.parm["pswd"] self.setup = False + self.destdir = None def configure_checksum(checksum_id): checksum_plain_name = "%ssum" % checksum_id @@ -1609,6 +1610,8 @@ class FetchMethod(object): else: unpackdir = rootdir + urldata.destdir = unpackdir + if not unpack or not cmd: urldata.unpack_tracer.unpack("file-copy", unpackdir) # If file == dest, then avoid any copies, as we already put the file into dest!