Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c93bfc35 authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi Committed by Automerger Merge Worker
Browse files

Merge "floss: Delete rootcanal Cargo.lock in build.py" am: 6566877c am: 045d44d3

parents ab516efc 045d44d3
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -537,8 +537,14 @@ class HostBuild():
        shutil.rmtree(self.output_dir)

        # 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:
            os.remove(os.path.join(self.platform_dir, 'bt', 'Cargo.lock'))
                os.remove(lock_file)
                print('Removed {}'.format(lock_file))
            except FileNotFoundError:
                pass