From patchwork Thu Nov 26 01:19:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 231 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:df02:0:0:0:0:0 with SMTP id i2csp1229657oou; Thu, 26 Nov 2020 03:20:17 -0800 (PST) X-Received: by 2002:a05:6402:31a5:: with SMTP id dj5mr2011901edb.110.1606389617473; Thu, 26 Nov 2020 03:20:17 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1606389617; cv=pass; d=google.com; s=arc-20160816; b=Qv2D05lSaxDnBgu+dfPfQXgL+zhOeGVD9EMzHvc5rjfTSsxEY3OMKy+M/r6KkqFcVD R5WAzSLe84krvhDE369AIHoXk2xpdKkwAcHxROwxjttvFvMhOvyrZmmHnWw2BzbRt1o2 OAGpcUEJqh13zPmnE5HahmhNwnbR2nEnASxDphxV5xTcRFCGZ6SoOzD1N4kG9oPg7TH7 hdeX5iNXuWHGcAfBY5DPJWgZpmMKp2exVQkw4vwgwE72UK9xJbsoZw4In/G1DQpiqKOa vA+dBzsuBO475a3TjYdmZwz7GtqFBz3ViYS8GcwfpiH4saQiDUjAwUh7KqkqNu03/Egt tNqA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=/ysI9R3t+UkLsMdTWCR27738X4o9arBwj8i/57jfS+8=; b=IJ/Bsi+N8I8xKdSl/719klTIsidKiVGBn+bh6mgwrWw4GaDsr805vob6Z9+enW5a5b ilvHUwMn1fVv3w8rd7N2Vf7KadYv0bjQJFPHk+30T+UbWHYnV+wvJNuf9X6Vm2yt/fit gIpJU2avnw/fxe57+H3kU+LYbi1yIqy/CifcOiC/xUg010hZJCN+8f44bk5LIc5uYJz0 Iwrajoi7z1v782OoriHis9iUWxxs4aQjRDOpWh/GcgK2edMcGCQlqWUdgzhUWhavw7Zf 8yyb763Gk0j6DMmIgozPZ6NTzuGf2OmpS0mpZZQbsC0pzdtbmPFErrW7AsDOe4p+wEoi mt1w== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=d+2sQGNO; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrb4m6736qkgqecek4xwy@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRB4M6736QKGQECEK4XWY@googlegroups.com Received: from mail-sor-f55.google.com (mail-sor-f55.google.com. [209.85.220.55]) by mx.google.com with SMTPS id l5sor3357427ejd.35.2020.11.26.03.20.17 (Google Transport Security); Thu, 26 Nov 2020 03:20:17 -0800 (PST) Received-SPF: pass (google.com: domain of isar-users+bncbcwp7lf37ukrb4m6736qkgqecek4xwy@googlegroups.com designates 209.85.220.55 as permitted sender) client-ip=209.85.220.55; Authentication-Results: mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=d+2sQGNO; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrb4m6736qkgqecek4xwy@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRB4M6736QKGQECEK4XWY@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1606389617; cv=pass; d=google.com; s=arc-20160816; b=ownaV8q+9K1Hp8hhCNrGJFOUg0zAzNF1wUU5mq2yaGlBD3oXHtwxvB0zYu9egsvEm9 CKBxHeOnqiBqSFF3jpKdQDFDivQXBIa12iwNG2+EUIbpBU27mgncO6IneVIGPd/hyU5X Ub5l/yKeLebHezsa0QitOEGYjNsJhyV1bG0nRUEm/DkCEOmI1oQQYf+10MY/2uzo955y 7fypjrribD8uETe4HLGsA8MspOW/BVXGBHms7woQ8IsLKPGunwPuYNcvZX6OQaUI3nVC EGqltiDFZCN4naybK5XVKBVF3uSVoy+FccJcv7TS2TSU5HHimKq8K05MOaEFR5a3PixW CywA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=/ysI9R3t+UkLsMdTWCR27738X4o9arBwj8i/57jfS+8=; b=sE+ihnzxiXWRe9YD3frcETAI0Oj8N7AybkDC0Xts+8Ab+Qbur1bMUB7mjAk9RL9AXJ pMNdWLf1UOpcYxx0aV6McNjtXUU1Sffikcec7ACroGnjH2ftvjog1Hi1owW12qx+hAZm yOtB1tRm7VQv7wynxkkk4WZPF/Y+d52wAtRdyqe7cLJNOEonjS2zeJhk593PTcqG7ZBt HmRzCEHt2Acgm+qHQ8jPjpbcBgJau17cSazMsA6j3iQu9Ff3jT8/4RGy06BjqVeH75fc tTkAL59KkG9cEh0d5mvsKB6tX2Wr8UU7DKcQ80A2YJUi/y9QmHX1WrPoLsSWyAhUcZ5b DbNA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:ironport-sdr:ironport-sdr:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=/ysI9R3t+UkLsMdTWCR27738X4o9arBwj8i/57jfS+8=; b=d+2sQGNObwqBJYDww+SI/K1QjkydZpV6WR9BwFAE8R1a7q1xkPv7Vjj+3QqEmAufCQ +PrKShMVoSbz5d/XoSiyGUs4eh9ui6hMbsIwp1ZO6pkktKrJfvKH8zpRLkaG9gKuxrm5 nvykHDIbppfvRM+eDxl2PNj8fOV6o8kMN8KL2BWTOn0wjICG0LrbUZS45FDym8efG5mu JeroOEbvoJL5JQOo9tyqIDxygJHt6vEhT5hT0uALUbC78+edjiYPLQ42tlyIGMpRGyQe nuzMcC9/ndO3lWL0NFRdRYOzSM5SnfpOmmjDTFVAnbXTfRxKCs4QuZAkInOR8bFkzM6x C2PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=/ysI9R3t+UkLsMdTWCR27738X4o9arBwj8i/57jfS+8=; b=AzKcjGTRm0MeErswO9SXCBAWD8MKTTEShFb2k2iROn4PONit0xJ7gS+BDkdQnRLlYV y+kMavSw0QtX4JWnCAmc9i1yHPWrP4IE1nvtJQtDhz8Qvb4iBBm3PtthwsD/5Hu4yFlS SKkVPGCsJFqvy7HUE6eoPzBdZefzMtlkldf8znhX6byziKRWS4kkNHiAhMIpUBjzo4od OOtKVBLsxqzP01iw2/jnLDV6KVo9OxX6/xDmcu8dJacCNhzqGq2hQUJ/H+QjKPlTnp0c wGjotOKFDR1aT/Xn8lssarkVTXkUo5T54ueUg2hmm2dIuMvQNPFLYkUh3PMc+ouC55nK 87zg== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM530jk675kpBNGZNQ5JjrZgiLx8tVoKXMV7kz2V9FOJ8S+rGUJyPj oXCPbHeVVVP+G9nKpuK9OEs= X-Google-Smtp-Source: ABdhPJwRnc/ByRPLo0qRq7zbSYvkZs3QcZ18KlloqlJG6pTD+BgW/ODi9l1gz3p2+IZxrn3H7a1/5A== X-Received: by 2002:a17:906:145b:: with SMTP id q27mr2230511ejc.86.1606389617158; Thu, 26 Nov 2020 03:20:17 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aa7:d151:: with SMTP id r17ls1871792edo.1.gmail; Thu, 26 Nov 2020 03:20:16 -0800 (PST) X-Received: by 2002:a50:d617:: with SMTP id x23mr1999080edi.361.1606389616314; Thu, 26 Nov 2020 03:20:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606389616; cv=none; d=google.com; s=arc-20160816; b=TAldxx77OTAfEGMR4MaZU4tDj9bM8QHydlRiVVhbKNx1Kjr4foj6IDOn5aDA4V7GFJ UZv73D8XqDFZXAWuu8+MZg+mY04PvIvd4twByH85l92AKFMjDvpskP6Bes6w556hx2jw vBZedgaWvuQviMtbdg5dq1yehQAWK6ueS94VVg8Yaqe2gYK/oEYYroVUImQFuIgyX6WY rgqwzsvkTa7r5UV3w2mE4oracEFpYsdYK80ZRl6mmmxaJd1oDPZgUl++mZFQQdBk9sg5 LTogdZyo3Eo9IAF75ZXAsjTaWQtOuMYkR6G1XSLxwPWn6IxKxFFbuRkgvV6XCkUIdnk9 Rodg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:ironport-sdr:ironport-sdr; bh=bjyc/AnITYqgbyEIv4gnVUjhB+RwoaQ68TQ1OhRyz+c=; b=GnWFdeOrVWMPRHdHCNv5gZp4STHWi/kjUDkKVCKID9qdYVe/PohwNlxGj1rTFkhoKC 7KIWLpoAFcMMWd6DmBSJXfqhm/qN9RcMxuxZOBZ+zH8hl3NFDb/98xTU9N7yxX5YdC/T UH654wquTvrNmoKGQtw6k4C/+5aHn2rtu6Pu1FmX6CMZP3crAd49GdeeJBh2NNdGkFmX S3xK1zvc3SdkbDPTVtshy+/Z5m7VbwJnVeR7xIhcMzrYHlh3DtF0iMWTORnt72klLrQj zlaIqZm0zyxtp5dkn/2F/z03sc9DxnB6TFemTWMnBIFqfqK2XMpItO0CZ+KDVCTkjHNn e/Zw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com. [68.232.137.180]) by gmr-mx.google.com with ESMTPS id v7si292239edj.5.2020.11.26.03.20.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2020 03:20:16 -0800 (PST) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.180 as permitted sender) client-ip=68.232.137.180; IronPort-SDR: MYHFNcFYc7x5mGA/K5/P9lIZSXeH/ZPPwj78UPjk3yQth2/U7V7iAVZazqXAVZf4NuJlxDlVCs gA+V5ChIcsFevGHJakhC4/Wh4fDIAW1fOPpGuy53f268GyUT1TDXeHvjSkkYJYWU+Sk9VIK4EW C1trQaS6802mEvzfEzzO13qWat2U9x8JFIygKesQdVpkCBFJMaEB114kDRrbJXIJJuXvpu9Hgl gDjnzPnufXwpJtA1sxjuQvXgQs4KiAwJ3dhqHDRzA+77FhI6swA0PweBKjWWjkfe7sHr0P5ILf W2Y= X-IronPort-AV: E=Sophos;i="5.78,371,1599552000"; d="scan'208";a="55500430" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 26 Nov 2020 03:20:15 -0800 IronPort-SDR: yCKYqLLZ56lnoUGVhas+HrpVPpBBClCnPFhUBaAYjVmF8GsQepvIhnwK8rusY04whDPa+nJkbo 2Onzvt/X3dba6w34b6M2fAynv1EXpOvKXf4lCFOzwy7JkUpvXf5FPocLfSMhsFw+Y7xbAexJLA ngw0H2PL3GRRFc8/1Gw3InXUquQdlzRuqZrb7xG5qMIAHFGDnQNtJIttLPg2fqS4MW3hydI1Wu NHa9KrV71XV+KLVwwJJpkyk7xWbFDtm/CGNV2sgGoIcTuj6c2Du/6TWCPpGBuEs1MDchaqda8a EJk= From: Vijai Kumar K To: , CC: Vijai Kumar K Subject: [PATCH v9 08/14] repository: Add a sanity test to check missing sources Date: Thu, 26 Nov 2020 16:49:06 +0530 Message-ID: <20201126111912.3037-9-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201126111912.3037-1-Vijaikumar_Kanagarajan@mentor.com> References: <20201126111912.3037-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: SVR-ORW-MBX-09.mgc.mentorg.com (147.34.90.209) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-Original-Sender: vijaikumar_kanagarajan@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1684421599357965587?= X-GMAIL-MSGID: =?utf-8?q?1684421599357965587?= Add a sanity test routine to test if sources for all packages are present in the repo. Signed-off-by: Vijai Kumar K --- meta/classes/repository.bbclass | 10 ++++++++++ meta/recipes-devtools/base-apt/base-apt.bb | 2 ++ 2 files changed, 12 insertions(+) diff --git a/meta/classes/repository.bbclass b/meta/classes/repository.bbclass index c70138f..7b6e47b 100644 --- a/meta/classes/repository.bbclass +++ b/meta/classes/repository.bbclass @@ -96,3 +96,13 @@ repo_contains_package() { # no return 2 } + +repo_sanity_test() { + local dir="$1" + local dbdir="$2" + local output="$( reprepro -s -b "${dir}" --dbdir "${dbdir}" sourcemissing )" + if [ -n "${output}" ]; then + bbwarn "One or more sources are missing in base-apt" + bbwarn "${output}" + fi +} diff --git a/meta/recipes-devtools/base-apt/base-apt.bb b/meta/recipes-devtools/base-apt/base-apt.bb index da3e32e..8940ae8 100644 --- a/meta/recipes-devtools/base-apt/base-apt.bb +++ b/meta/recipes-devtools/base-apt/base-apt.bb @@ -66,6 +66,8 @@ repo() { fi populate_base_apt + repo_sanity_test "${REPO_BASE_DIR}"/"${BASE_DISTRO}" \ + "${REPO_BASE_DB_DIR}"/"${BASE_DISTRO}" } python do_cache() {