Loading build.py +10 −4 Original line number Original line Diff line number Diff line Loading @@ -537,8 +537,14 @@ class HostBuild(): shutil.rmtree(self.output_dir) shutil.rmtree(self.output_dir) # Remove Cargo.lock that may have become generated # Remove Cargo.lock that may have become generated cargo_lock_files = [ os.path.join(self.platform_dir, 'bt', 'Cargo.lock'), os.path.join(self.platform_dir, 'bt', 'tools', 'rootcanal', 'Cargo.lock'), ] for lock_file in cargo_lock_files: try: try: os.remove(os.path.join(self.platform_dir, 'bt', 'Cargo.lock')) os.remove(lock_file) print('Removed {}'.format(lock_file)) except FileNotFoundError: except FileNotFoundError: pass pass Loading Loading
build.py +10 −4 Original line number Original line Diff line number Diff line Loading @@ -537,8 +537,14 @@ class HostBuild(): shutil.rmtree(self.output_dir) shutil.rmtree(self.output_dir) # Remove Cargo.lock that may have become generated # Remove Cargo.lock that may have become generated cargo_lock_files = [ os.path.join(self.platform_dir, 'bt', 'Cargo.lock'), os.path.join(self.platform_dir, 'bt', 'tools', 'rootcanal', 'Cargo.lock'), ] for lock_file in cargo_lock_files: try: try: os.remove(os.path.join(self.platform_dir, 'bt', 'Cargo.lock')) os.remove(lock_file) print('Removed {}'.format(lock_file)) except FileNotFoundError: except FileNotFoundError: pass pass Loading