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

Commit 6566877c authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi Committed by Gerrit Code Review
Browse files

Merge "floss: Delete rootcanal Cargo.lock in build.py"

parents 94c31350 16617289
Loading
Loading
Loading
Loading
+10 −4
Original line number Original line Diff line number Diff line
@@ -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