From patchwork Wed Nov 25 03:44:08 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: 214 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:df02:0:0:0:0:0 with SMTP id i2csp372419oou; Wed, 25 Nov 2020 05:44:48 -0800 (PST) X-Received: by 2002:a17:906:4699:: with SMTP id a25mr3183461ejr.284.1606311888569; Wed, 25 Nov 2020 05:44:48 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1606311888; cv=pass; d=google.com; s=arc-20160816; b=zhXQ2Q6T0TEtUEQIfmBM6Un70eflD5MwkEUOvzS31oVFFxkaKgQlQypfpP4lh9zvZQ 6PC8JWPj81sdzHG85uJDUfSvMJ27UxmPu3hbG4XB2oIn5DQa1TZUO0Ib/Xm6c7WppNnN Kl7dfhEcPHpB+O/ONfgeVC/S+xAweWu78Nnuv+eXV8FfLuaOG28yBNbHM6mQQr3U4jbB AslaK7AFDM9iZ3Yd85POXG/+NUBUCdUPL/0JJErdYVeWnCjLgXMN69WXZ9wXHAK3xSXQ BJsY1iRgEk998AyRmrC9d2VuKdZ29evXASd4/3kPxWjuQd5xhZQ9c3vjRLTQYOCpxUmi K4iQ== 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=OcRTle8hl7OCZHsPSCaBCJwczyXBVCpWFAxatGjiubE=; b=s3xAsWXsmuFWRXvhNTFSmPblH8I4yEtF9snNs+QOFIEtlxOjwFa8a1dcz7U52VMoqJ mzBAbwK716LVEb6NJHPk6d8v/6xx+gnHFSUAazcjS5aZPr9IwWPzPX5PwYp24ZmQ4gAn dR8M0y6F3GI9SQm0f2Lj5G86luZRCXdpyOTbGOYyAva/U14n7sxHAzCCj/c76ubY+dnS U8m6PMmTBp9UUILbWA5ZMH6pZCEQmCiDtYaI0+muIgyarVdipQGxqqXrGN/zPYIsh/UD myi7m0Frb/Kw7jI0Em29BTGrdly6v+HBMlNgiFkcEWBkglh8r5m90XgDww/ymrlMG8lv Pqug== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=YkGhaoCc; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrbuf77h6qkgqey27uxma@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRBUF77H6QKGQEY27UXMA@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 m22sor2255653edq.7.2020.11.25.05.44.48 (Google Transport Security); Wed, 25 Nov 2020 05:44:48 -0800 (PST) Received-SPF: pass (google.com: domain of isar-users+bncbcwp7lf37ukrbuf77h6qkgqey27uxma@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=YkGhaoCc; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrbuf77h6qkgqey27uxma@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRBUF77H6QKGQEY27UXMA@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1606311888; cv=pass; d=google.com; s=arc-20160816; b=Ec24sje9zgkV0VRZWLVLfmrt61sL1CeDmx+GOJW+lPRkjmc4CgkUfdrw4KmFc4lhMJ 8uESZ8M9Bw/tHrwsWAF5wxdhuPs8RPj4VlOD31F3iENPy/IqeXVew22/njPAFp4M60mY Fhk/V+DCHQdrdEmJIzVmJgmJ/Q2czt+KrEIuhuF+BQnZrJki3JP6Gaa8bYdDp+AeehBc goPZo5x8SLkW7Mm9dpMGxy138AHtgVoBwh29OcRuf/NeHmgIUAA2xJAId426/hqXlJBi saRvYxQ+T90YgNiSrZHPQLFLGJc4P7G0RVFEVHYJbNOc4+vuXJpziAwrBygr63417NLP xDow== 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=OcRTle8hl7OCZHsPSCaBCJwczyXBVCpWFAxatGjiubE=; b=phOdhuXYnmQRVLbcqIUiOec7SnK9zwPwTlFvIh5WizYtj5MoyuQ52Afd7/8mi50tcz W59OtvmGeqGO3yr9bxE8SDUhapW3mJX+wN+SCSsCdKgbiJ2pVv957i7JWgvjeg8mo9yx gHYGdkD27B5/nsNqzIjNPqxKNlG7JQKumdJCDOsYGQHY1G8hkMOjL1iucJjvLosXCyqV Aw3Y2OUg8sS4GA8t64P5WqCbpphY2P5C13fnDuJcMBwpMSw12NsmknInrqfGAY2W71T8 UdhJRKOerv7H0cE3e6DRF375roAu/G6BlCqzz7m0FMy6wTE9C/HZcRASm3GsVi5U/+kw Gidg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 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=OcRTle8hl7OCZHsPSCaBCJwczyXBVCpWFAxatGjiubE=; b=YkGhaoCccDKtfvKhbxhXzcq99n3kA0kysFB2OCYYbP7vADIwPQD0XeSd0F8MNxUNQK T68Krcyg5C5WDAlcQRwDeHV08EzSyIB1gfZGY/Wr3L+RM5IozwZL6r/GvvlpfN+sZkY6 HRGQdkE1rvguvYK89gGAB2ltBK3Mvfk1qU19h7UtuJAqxoTjJgI8GOaMrO7IbIV5zt7f 72adjhE3fBsg4LNRnoda/ODilGsgwpD11dQbwy9vydsATHGzgJbi+Zohb3omNNelH9ZD wU8NX72DtCUC0u8Y43R9og4sfgz+UJqoHbWZKYYjRBh4C3NtuEB6Zebt3lFqnegiRy1r qSdQ== 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=OcRTle8hl7OCZHsPSCaBCJwczyXBVCpWFAxatGjiubE=; b=cSIO7txzBHnE2NTKHRITgguF00ezx7bHkgesJalXk85Jol03HFTPcNGgln4CC+dy7V eqLQ3WSUiNDK8SeplKsLRVolE/pf0o1H6T9rCO7wWurPWiBPgDujfoEstc9LV3W/+Q4P mUTbslkWtDlWT7MBStD4wEM6wxWA5kLaTk0xiw1drd0nViCld+0n3z0seOXZj9S7tBfB 1VxQi+5+xCqlCuKK5S3bcPHXbML1AAthL1i/+e0uaDzF0FlgGffEqMjjNEu83z8PBnrV irvEymMa1oj62oiqILOYUtPXIzs8CoNYumCsfNTCED29qQR6lgoAaHSNa5aAsOLZnMAl I3Lw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM5330HSlDgIq9LSopNM9aqp7za1u5XRE18nxbGgOuYo96g8FoTar0 1wt6ktebVQzMHlx8QR98CGo= X-Google-Smtp-Source: ABdhPJyBB+YM8EsY5Fgtj86mtcw5pRzLdrG315mCXRUqFCMVHoxzsj8MEfnbjz/yANGGE8LAAKMqVQ== X-Received: by 2002:a50:d6c6:: with SMTP id l6mr3596975edj.80.1606311888326; Wed, 25 Nov 2020 05:44:48 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aa7:d151:: with SMTP id r17ls458581edo.1.gmail; Wed, 25 Nov 2020 05:44:47 -0800 (PST) X-Received: by 2002:a50:cfcf:: with SMTP id i15mr3487342edk.351.1606311887413; Wed, 25 Nov 2020 05:44:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606311887; cv=none; d=google.com; s=arc-20160816; b=osFekebvu7a2H3tioPRajx71SZnQuNBn2MXXkzNVXRV0x3UH9S6S5Hfb6BF5cG+8+4 ooSls9IlSvcl82uDeSMtvoxb4HTNQPFtjk+1iqK3GtdNT9hSGWiQFpT1ZoUVVM3ZssQt hYBJsahRKWcndggDIFEfkI8noRcbgd5vPeFc76whEWCpiM4+ndhyz/vVDLrDOhK2kUJ4 H3aS/fNLSybwhO+dEiiFjhJMtQaQCHUOMiRRnAzs22IplvgxFxftLm34K5nVF1QNoO+K B59siT7dqnyQbAQUw9yVXGKb+SVO984s8zMyjO2mXj/4EwrJSyBA+OzRgQcpAidbsXZX nCkQ== 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=lYyyWV41QjzvLy8ogVX0DPIRK09ZN1714kVnTjs/ORwlA4yTyn3c5KkDg+AwUhwbq+ qvFkX8MXtmlBNM3b3kgrQEH7ZAbOVjJbyxfTmZPxuYd31ZOM/4KqLORjhXGoJP/TjQCl riwczt8aa4B3N0cFIKYFZNR55JYbPDnvsUgZv8lJzttdJNrZ0Fho1Wf66lawNNWinLeh 49dOYVQdNezD9bwCavfuj33lbp+Gm+CwsFpv1SMMQNzhwNgKr4TWLn6Fs7GqdNlsh3iG LkA3q9J2iCasGd5SQyxrJFeTJSCwRf+7jSH0XuXqO7PwFF7lv79eA9Tu74vgNRUGlF0y DfRA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id v7si130589edj.5.2020.11.25.05.44.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Nov 2020 05:44:47 -0800 (PST) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; IronPort-SDR: 5pEajxCeo3KqMO4fNPyibW85WPv0PqD4AvdM3q8KfHZvCT+QPZ/Fpb143AWy1e/pp1XWBJicVh FH5C9rIXNRilgmhEPd/NFymtupIYEMFB4SW7ebVSf+gRUzjCHfyGLR09uBwLm84+f9QTAINChO zE4UEz/myy7B+7sELuBmmpvat9RB/L31lmObkzDGhrrKNY03CkjP0T2DQq8V6KQ6zmD9xW5ly7 1mPu4ThVvy87jNmVZFD5JaRtaYn0v3sbEaQ6JBAD5UfV+977WzTmD6zLaS6BANbkabgpZi/ChV /zs= X-IronPort-AV: E=Sophos;i="5.78,368,1599552000"; d="scan'208";a="55597781" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 25 Nov 2020 05:44:46 -0800 IronPort-SDR: 28kZmAUV9G6kbxqTvHkDsTlawDGMKfPgT1fiwO6WovQmOMJG3gZ3qodlMTUB3K/nIn485Ju0kt taLtgR1SQZ/XspnEMmTWaP2+aeVGNwwO/0pmOigKwWOyH1QMP/J6n/EH8Y6H12WxhvvZIuSVTr OnGgQ0+LMvwTzlMLFkKNBaEhQ1A3wElyzJTWfI9w7OT8W0Kg9F29nWdyUeG5l4yg4RWof3zJZM okkime4ONUOazwNHT42foQflEz2QYxXtDp4q6IroQuIGHP2MWD0bX9lRONqJG39LKDNg+BIh2n bSU= From: Vijai Kumar K To: CC: Vijai Kumar K Subject: [PATCH v8 08/14] repository: Add a sanity test to check missing sources Date: Wed, 25 Nov 2020 19:14:08 +0530 Message-ID: <20201125134414.26061-4-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201125134414.26061-1-Vijaikumar_Kanagarajan@mentor.com> References: <20201125134236.25878-5-Vijaikumar_Kanagarajan@mentor.com> <20201125134414.26061-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: SVR-ORW-MBX-05.mgc.mentorg.com (147.34.90.205) 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.252 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?1684340094924817529?= X-GMAIL-MSGID: =?utf-8?q?1684340094924817529?= 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() {