From nobody Sun May 5 11:18:01 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+41468+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+41468+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1559032533; cv=none; d=zoho.com; s=zohoarc; b=Jg8HgZy5y7i3fBXiRW5FMt0x1iQu/MsEg93QXsb0mEDI/n/dSIwjc2NMfv/T7jnfPBKoTkfAgGBkLywiNcFZ4Q/ajS+uuBuSrlwhf1vtGbv6xQtrCNXNKKNk8o2RQrlv+1ss2VmRpH8KgIZtBtyOxgB+6d+ot7ByVQ/ihzdSGCM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559032533; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=7VYOB8vg+SYHgelft4U/ez80SzlJ1AhS4YuPBXf8G0E=; b=KYMYLsYP0lUkw3vkGQZRv96iYSaXETr0JJuv3F2V071eTuwOUAniakby2uP5Gf7kpdmu6YmwVf3JnTYRsSNoSIfskN39Vo6d7eUOJ5BwQm3TFbvPxHSDGxa9WFC/oo9z/+YQkgFoJpqDyHIL+dJyPxVMr/UU8RiSukQiRqJY/Ps= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+41468+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 1559032533401396.7600134785025; Tue, 28 May 2019 01:35:33 -0700 (PDT) Return-Path: X-Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by groups.io with SMTP; Tue, 28 May 2019 01:35:32 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 May 2019 01:35:32 -0700 X-ExtLoop1: 1 X-Received: from jshi19-mobl.ccr.corp.intel.com ([10.254.209.247]) by fmsmga005.fm.intel.com with ESMTP; 28 May 2019 01:35:22 -0700 From: "Steven Shi" To: devel@edk2.groups.io Cc: liming.gao@intel.com, bob.c.feng@intel.com, christian.rodriguez@intel.com, zhijux.fan@intel.com Subject: [edk2-devel] [PATCH] BaseTools:Update binary cache restore time to current time Date: Tue, 28 May 2019 16:35:14 +0800 Message-Id: <20190528083514.22636-1-steven.shi@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,steven.shi@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1559032532; bh=bwpOlIsv/nTsZhnSzjJUAAK+UgtZu+0Hy4x6fugzvQk=; h=Cc:Date:From:Reply-To:Subject:To; b=GMDpmYZOcbsXA4nyWiaRCLpyJRleGN53/AzCVQmzy6UJRWqriUMI1T3UQeMrnPlq80D Czdn6OC+Ohz3yKicEUKBR7xss2zQW7sb990SSgFdImpY9yHU/fwU/f0nEf3Z9JvzGfJhL NseS9mCMuPr9tt5R2P/apwjb8N578LSm6oY= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" https://bugzilla.tianocore.org/show_bug.cgi?id=3D1742 Current Binary Cache doesn't update the restored file creation and modification times to the current time. Preserve the new restored file creation time as old cached time might has potential issue to block the make to build updated files based on the time stamp. Enhance to update the restored file creation time to current time. Cc: Liming Gao Cc: Bob Feng Cc: Zhiju Fan Signed-off-by: Steven Shi Reviewed-by: Bob Feng --- BaseTools/Source/Python/AutoGen/AutoGen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/= Python/AutoGen/AutoGen.py index a5bef4f7c6..57ca67f692 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -3941,14 +3941,14 @@ class ModuleAutoGen(AutoGen): for root, dir, files in os.walk(FileDir): for f in files: if self.Name + '.hash' in f: - shutil.copy2(HashFile, self.BuildDir) + shutil.copy(HashFile, self.BuildDir) else: File =3D path.join(root, f) sub_dir =3D os.path.relpath(File, FileDir) destination_file =3D os.path.join(self.Out= putDir, sub_dir) destination_dir =3D os.path.dirname(destin= ation_file) CreateDirectory(destination_dir) - shutil.copy2(File, destination_dir) + shutil.copy(File, destination_dir) if self.Name =3D=3D "PcdPeim" or self.Name =3D=3D "Pcd= Dxe": CreatePcdDatabaseCode(self, TemplateString(), Temp= lateString()) return True --=20 2.17.1.windows.2 -=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 (#41468): https://edk2.groups.io/g/devel/message/41468 Mute This Topic: https://groups.io/mt/31819590/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-