Message ID | 20241122054816.3371334-2-cedric.hombourger@siemens.com |
---|---|
State | Under Review, archived |
Headers | show
Return-Path: <isar-users+bncBDB6LLF7YUBRBNVWQC5AMGQE5WF7AOQ@googlegroups.com> Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 22 Nov 2024 06:48:46 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-oo1-f58.google.com (mail-oo1-f58.google.com [209.85.161.58]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4AM5mjZP016366 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <iupwgm@isar-build.org>; Fri, 22 Nov 2024 06:48:46 +0100 Received: by mail-oo1-f58.google.com with SMTP id 006d021491bc7-5ebb6b362f2sf1409607eaf.1 for <iupwgm@isar-build.org>; Thu, 21 Nov 2024 21:48:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1732254519; cv=pass; d=google.com; s=arc-20240605; b=QbdhXRR7cs85l9soxMid9gofHM7paiol07Nj6M5tfnEcIBLFgEFktb0grf4wdKMz3A zF/qVRdREoHs5b3hTmvpPv6QYvjqfs9cTAGB+YQ/cKX3MdpUFFf6cYOOeDRiK6u2ldDj Hnz7smdVTigESVuS+ztBrHQ0Ub7e+xqq/6gknYEBO61vw9q93S82cG041Xl4c5bt7a3y hmvfcAtVtQobEfugXxCn41KCPXgkP3QjzpF4ekcI8p+IQZXPCavkw8xSYILpKDLzXmBP DhNxPt6mrkl/dyq05FUUhIq4OTgPidD70UMnMpEGHjSOYUjG+6KnYno1vwFhFlXPaftx vySw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QDyTnU6VmntFv5ztnLq3OvdAMpriD1trDFNN+femCkA=; fh=2fXgXLdjrJx1iEDAZSEok+1Z82Wrlwyz/SguYEaRTEs=; b=HQ7Q6SByos2yELYWeNPrNxZdMez5e4mhBN4GHqjZSKwg7InMaR94zsnggViC+sMfBj q04Qnm5lV9cH4DpdFN8uxdd938gnaPY0uhnxfcJG6f7+lg3r4s2O5ZYdksdil/tF2TBY 1u9EVQo/eTprdtyP7g0B0PotQBzeGJhCShXSHZZOIEcRU4AaayUT3OUMhxGt6n7eafFd rZbjFImcKYYQv8oVvQMKHopTxWLm4XKVhbwgfChTrGQYp292VEOiFizXb91ekyA4BaYf DrD8pDAIPEAxPjs8Sec1KtzupkbFoH5hQZzm7xDRdbg3jBEpi3xYHN12Q08ewgjXvMdz knwQ==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=bOjkH21T; spf=pass (google.com: domain of fm-1212295-202411220548359597f02eaa2d13481a-gsuvo5@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-1212295-202411220548359597f02eaa2d13481a-GSuVo5@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1732254519; x=1732859319; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=QDyTnU6VmntFv5ztnLq3OvdAMpriD1trDFNN+femCkA=; b=kpcTUaJF6nQpAbbtvJWUMZ3QntI7oZUkhjlGG81QJksCj5zUJw5cvLkN1xQyU0VU/W KMIwhCUwpG576IDNFD1b04LEwOu97RJNhS777NkQbyLcUjmmmdKcdzLg0aei7v0nsHGf Qh8JHSvi5zThniGVGxSAEhItpqDbtwbNCsPSi/5aI8dNJRVApKpsdZi1/rxTQD3scV4W DlO27i8BevvOUvUx18CxmWqYEaWOrOtv4sD52hyKmWDruHKokzmKsPBHSVhMvucdnZ+8 57k3PQ01q44Emg+p3tOfGt7OL7rzSn14aQo6Au6sYIp/3CCK3slYh4NUeMX30L40zhhS PrqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732254519; x=1732859319; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QDyTnU6VmntFv5ztnLq3OvdAMpriD1trDFNN+femCkA=; b=rOYT4wVqxkbwj3BJO1ePSf6hiMAj3zRp6zm27gRC/sB+BgH2ZMXHYMFAEUioKkPa3V aAmAQpGGE0BwUCcGbE38sgad2GFhrq/ypqGQxbCk9h2uA4na4rGWjmGlSn82pzIt9/37 Pgh7u27vk8R5OMGnYLWtnkrfGreusjigoOC1HCm+EhWlhRIDfF5PjczutYgDYpvyziel mmuAQntaX8aomU1OsNA/hfu1yuUoCoG9/amlpCzRRI+DiEnnFTZKXoi9fk1gN9m4Ik2U 6LOmKmktiaD6iGH92NOvMeEj1PpA+7s2B2DPaELbGJXbNBIKRQ1ckezhGwY8zGK0mYiR xJQA== X-Forwarded-Encrypted: i=2; AJvYcCXxdwfgJSCAREp9v9rW8In8UfouLvCxqDRUOLpb/x4cbcmLAXkiGmCEbqu2b9MEQrCMvbGE8Yo=@isar-build.org X-Gm-Message-State: AOJu0YywPjjwrhtoTO6pXh1c40aITCh4xt2GTxln8Bmu7qRC8eU+WTUU fybK1ba1CETxZZtJOWpkHEMfPOVsqgvWNA3lGCMwSylXDghOBzht X-Google-Smtp-Source: AGHT+IHtlY3cG75rwPIXISqMH8PTIn6uezTzW0N3QBv1qWvAdWxKLqzvfvMT7QFkxuGtMCBh0nsSUg== X-Received: by 2002:a05:6820:1ac9:b0:5ee:db2e:9f76 with SMTP id 006d021491bc7-5f06a6f23cfmr1638771eaf.0.1732254518646; Thu, 21 Nov 2024 21:48:38 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6820:228d:b0:5ee:dd2e:8d38 with SMTP id 006d021491bc7-5ef3c4c4b18ls1523566eaf.1.-pod-prod-01-us; Thu, 21 Nov 2024 21:48:37 -0800 (PST) X-Received: by 2002:a05:6808:19aa:b0:3e7:5af6:af0f with SMTP id 5614622812f47-3e915aeb004mr1703309b6e.39.1732254517817; Thu, 21 Nov 2024 21:48:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732254517; cv=none; d=google.com; s=arc-20240605; b=bLzacj5wx74Qsmk8gGEXfQOEqp6/p5d8+0/UtPIRR8j/uv+RTBZmSGKYFOShE8I8h8 97VN9MD0PL4+qLs7z+Ul7QZFwmib8RFWPgyAw98/uorg4zt27VBEHcjz4mPJq4O+QDTg AV9v8zT/r1y5RGDNNUyDkF/ZOHKo4CYu/7EV51MYsu7xArYg5MqDrpjc9FYGi/nuMXzj L8TJnyUxT3T9/EB4Uhxw+Pi1imFBijZxw6bjzh8iwiGziUarIe8R+R9S4tQow6wDrJFs DqfZHcl+yj37ZLzQlv4Yw9/dXUjRlUM9W57vuvQFJmXAQxpcRhrZonElge8XHA8BtOFt xiWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=hT3srfDVfDIVkVI1OYvFmvsgCM1Gz8s6+R/yE4y17RE=; fh=1z37pEVhqwMLlkT4FDzOga7XBsM6Rzv6sXOq0pipxqo=; b=GHElbPg5zu6YNd5KDU/ESNAIgj8WGvVaiHjlfW9y1EUEZnnjQ18GflE8zpIOg9Ftr8 6FVwyVRnGWiuEiMdPDQukxPwKxG2+x0G2WLSXxZQpq1hPbdJpzOcFouqXdgyINnEctHy tTeQ1Hy0aExk/1QUvFi+RJFOJvAy/0ktFBOgmNT9uXws0ehKJEdne1YJbs4vaHAIu/0+ k8u7JQRo4uQ1FvhrEJYKJ4jQEoLPxPXhgSH3LCvpo8wn8/Dj5nEODeukDaKyhvC4yO+t iPeuTIy5jC0+1YhGFPPNt6X/awFRwfvdcLgVWbylOXXqqpdTFF1eKIwa3m40pevjtrR1 xTXA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=bOjkH21T; spf=pass (google.com: domain of fm-1212295-202411220548359597f02eaa2d13481a-gsuvo5@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-1212295-202411220548359597f02eaa2d13481a-GSuVo5@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net. [185.136.64.228]) by gmr-mx.google.com with ESMTPS id d2e1a72fcca58-724de5bb130si36336b3a.6.2024.11.21.21.48.37 for <isar-users@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Nov 2024 21:48:37 -0800 (PST) Received-SPF: pass (google.com: domain of fm-1212295-202411220548359597f02eaa2d13481a-gsuvo5@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) client-ip=185.136.64.228; Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 202411220548359597f02eaa2d13481a for <isar-users@googlegroups.com>; Fri, 22 Nov 2024 06:48:35 +0100 From: "'Cedric Hombourger' via isar-users" <isar-users@googlegroups.com> To: isar-users@googlegroups.com Cc: Cedric Hombourger <cedric.hombourger@siemens.com> Subject: [PATCH 1/3] repository: repo_del_package should not remove source packages Date: Fri, 22 Nov 2024 06:48:14 +0100 Message-Id: <20241122054816.3371334-2-cedric.hombourger@siemens.com> In-Reply-To: <20241122054816.3371334-1-cedric.hombourger@siemens.com> References: <20241122054816.3371334-1-cedric.hombourger@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1212295:519-21489:flowmailer X-Original-Sender: cedric.hombourger@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=bOjkH21T; spf=pass (google.com: domain of fm-1212295-202411220548359597f02eaa2d13481a-gsuvo5@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-1212295-202411220548359597f02eaa2d13481a-GSuVo5@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Cedric Hombourger <cedric.hombourger@siemens.com> Reply-To: Cedric Hombourger <cedric.hombourger@siemens.com> Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: <isar-users.googlegroups.com> X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: <https://groups.google.com/group/isar-users/post>, <mailto:isar-users@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:isar-users+help@googlegroups.com> List-Archive: <https://groups.google.com/group/isar-users List-Subscribe: <https://groups.google.com/group/isar-users/subscribe>, <mailto:isar-users+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+914930254986+unsubscribe@googlegroups.com>, <https://groups.google.com/group/isar-users/subscribe> X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= |
Series |
repository: small fixes for repo_{contains,del}_packages
|
expand
|
diff --git a/meta/classes/repository.bbclass b/meta/classes/repository.bbclass index 28e712fd..42d15823 100644 --- a/meta/classes/repository.bbclass +++ b/meta/classes/repository.bbclass @@ -84,14 +84,11 @@ repo_del_package() { if [ -n "${GNUPGHOME}" ]; then export GNUPGHOME="${GNUPGHOME}" fi - local p=$( dpkg-deb --show --showformat '${Package}' "${file}" ) - local a=$( dpkg-deb --show --showformat '${Architecture}' "${file}" ) - # removing "all" means no arch - local aarg="-A ${a}" - [ "${a}" = "all" ] && aarg="" - reprepro -b "${dir}" --dbdir "${dbdir}" -C main ${aarg} \ - remove "${codename}" \ - "${p}" + set -- $( dpkg-deb --show --showformat '${Package} ${Architecture}' "${file}" ) + local p="${1}" a="${2}" + reprepro -b "${dir}" --dbdir "${dbdir}" -C main \ + removefilter "${codename}" \ + 'Package (= '${p}'), Architecture (= '${a}'), $PackageType (= deb)' } repo_contains_package() {
When the architecture of the binary package is "all", repo_del_package would remove the architecture filter to remove binary for any packages. This unfortunately causes reprepro to also remove the source package. Modify this function to use "reprepro removefilter" where we can make sure that only .deb packages are removed. Signed-off-by: Cedric Hombourger <cedric.hombourger@siemens.com> --- meta/classes/repository.bbclass | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)