diff --git a/python/mozbuild/mozbuild/vendor_rust.py b/python/mozbuild/mozbuild/vendor_rust.py index ac4dc1e2cbf7..94aed8e53b3c 100644 --- a/python/mozbuild/mozbuild/vendor_rust.py +++ b/python/mozbuild/mozbuild/vendor_rust.py @@ -289,14 +289,12 @@ license file's hash. relative_vendor_dir = 'third_party/rust' vendor_dir = mozpath.join(self.topsrcdir, relative_vendor_dir) - self.log(logging.INFO, 'rm_vendor_dir', {}, 'rm -rf %s' % vendor_dir) - mozfile.remove(vendor_dir) # We use check_call instead of mozprocess to ensure errors are displayed. # We do an |update -p| here to regenerate the Cargo.lock file with minimal changes. See bug 1324462 subprocess.check_call([cargo, 'update', '-p', 'gkrust'], cwd=self.topsrcdir) - subprocess.check_call([cargo, 'vendor', '--quiet', '--no-delete', '--sync', 'Cargo.lock'] + [vendor_dir], cwd=self.topsrcdir) + subprocess.check_call([cargo, 'vendor', '--quiet', '--sync', 'Cargo.lock'] + [vendor_dir], cwd=self.topsrcdir) if not self._check_licenses(vendor_dir): self.log(logging.ERROR, 'license_check_failed', {},