From nobody Sun May 5 22:56:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+51711+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+51711+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1575424467; cv=none; d=zohomail.com; s=zohoarc; b=dNPquOAi1PmDQIne6NhAPylXtP4bCQhpj7Kj0c/4pHQ07KWsRJDk0d1qVcZeRV43SUyPJNVUqG7h90Uwr1WbT8vYTyA052NTYtaXtEXnNmK0C5YLSk+WVhdw5zD9sDIff9aPt5A7TY+XiKSn3+Rb2AcsGZabqdhOU6wnN//TfUM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575424467; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To; bh=pPgXwR5IRhqaZzec3Por90so6ARtop4uFG7oSBKMKLA=; b=IKEgjtmTJ/QznKAxZbPBQDH1q9zkSj+jJYKXEWylE/i04l6QwdQ2KG4llKWf+l9gx7NKjD3MYO5NyyvD6nGG9cabJjF2UnsByGblsbOQ4HGZLahKfuwze1CuoPOgteHAwgZ9ARAR2zzdMrBYp/DgP6Que0YxUhqy9DBC3i4Jx1Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+51711+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 157542446756731.133427192031604; Tue, 3 Dec 2019 17:54:27 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id BvoeYY1788612xa3NxhuR0yq; Tue, 03 Dec 2019 17:54:24 -0800 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web09.1778.1575424463765435007 for ; Tue, 03 Dec 2019 17:54:23 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Dec 2019 17:54:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,275,1571727600"; d="scan'208";a="385558433" X-Received: from aedesimo-desk.amr.corp.intel.com ([10.7.159.171]) by orsmga005.jf.intel.com with ESMTP; 03 Dec 2019 17:54:23 -0800 From: "Desimone, Ashley E" To: devel@edk2.groups.io Cc: Nate DeSimone , Puja Pandya Subject: [edk2-devel] [edk2-staging/EdkRepo] [PATCH V2] EdkRepo: Improve output formatting in maintain_submodules() Date: Tue, 3 Dec 2019 17:54:18 -0800 Message-Id: <20191204015418.34060-1-ashley.e.desimone@intel.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ashley.e.desimone@intel.com X-Gm-Message-State: IrCwr5BFvCWiz3eKED6RyupVx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1575424464; bh=71m88NDx3T5iPduLJg9q5WcEgjI36l+qNBRzufyVpUg=; h=Cc:Date:From:Reply-To:Subject:To; b=jyCVrtIaKyYgSRAZJE0cf/fZKBx2wEFZpddqtas4IGUfmq2K183AMXQ2pcsv/wGsBtS Enl9xUH6lckEhsFkuOjrSaEZrQpk/bYbd7by3nPPHdP3jTea/sgVZ4cDzmbRidmiSL/23 KqDnfMj7efSs1VL3lpyJt3ro7BVrRYbtUnE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Ashley E Desimone Cc: Nate DeSimone Cc: Puja Pandya Reviewed-by: Nate DeSimone --- edkrepo/common/common_repo_functions.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/edkrepo/common/common_repo_functions.py b/edkrepo/common/commo= n_repo_functions.py index c8713dd..d857d09 100644 --- a/edkrepo/common/common_repo_functions.py +++ b/edkrepo/common/common_repo_functions.py @@ -201,26 +201,26 @@ def write_conditional_include(workspace_path, repo_so= urces, included_configs): def maintain_submodules(repo_sources, repo, verbose =3D False): try: output_data =3D repo.git.execute(['git', 'submodule', 'init'], wit= h_extended_output=3DTrue, with_stdout=3DTrue) - if verbose: + if verbose and output_data[0]: print(output_data[0]) - print(output_data[1]) - if verbose: + if output_data[1]: + print(output_data[1]) + if verbose and output_data[2]: print(output_data[2]) - print() output_data =3D repo.git.execute(['git', 'submodule', 'sync', '--r= ecursive'], with_extended_output=3DTrue, with_stdout=3DTrue) - if verbose: + if verbose and output_data[0]: print(output_data[0]) - print(output_data[1]) - if verbose: + if output_data[1]: + print(output_data[1]) + if verbose and output_data[2]: print(output_data[2]) - print() output_data =3D repo.git.execute(['git', 'submodule', 'update', '-= -recursive'], with_extended_output=3DTrue, with_stdout=3DTrue) - if verbose: + if verbose and output_data[0]: print(output_data[0]) - print(output_data[1]) - if verbose: + if output_data[1]: + print(output_data[1]) + if verbose and output_data[2]: print(output_data[2]) - print() except: raise EdkrepoGitException(SUBMODULE_FAILURE.format(repo_sources.re= mote_name)) =20 --=20 2.16.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#51711): https://edk2.groups.io/g/devel/message/51711 Mute This Topic: https://groups.io/mt/66188779/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-