Skip to content

Do not try to remove non-existing directories #32011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

ranma42
Copy link
Contributor

@ranma42 ranma42 commented Mar 2, 2016

Fixes the following error

Traceback (most recent call last):
File ".../src/bootstrap/bootstrap.py", line 303, in <module>
rb.download_rust_nightly()
File ".../src/bootstrap/bootstrap.py", line 76, in download_rust_nightly
shutil.rmtree(self.bin_root())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 239, in rmtree
onerror(os.listdir, path, sys.exc_info())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 237, in rmtree
names = os.listdir(path)
OSError: [Errno 2] No such file or directory: '.../build/x86_64-apple-darwin/stage0'
make: *** [all] Error 1

which occurs when a rustbuild is started on a clean repository.

Fixes the following error

```
Traceback (most recent call last):
File ".../src/bootstrap/bootstrap.py", line 303, in <module>
rb.download_rust_nightly()
File ".../src/bootstrap/bootstrap.py", line 76, in download_rust_nightly
shutil.rmtree(self.bin_root())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 239, in rmtree
onerror(os.listdir, path, sys.exc_info())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 237, in rmtree
names = os.listdir(path)
OSError: [Errno 2] No such file or directory: '.../build/x86_64-apple-darwin/stage0'
make: *** [all] Error 1
```

which occurs when a rustbuild is started on a clean repository.
@rust-highfive
Copy link
Contributor

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@ranma42
Copy link
Contributor Author

ranma42 commented Mar 2, 2016

Dupe of #31995.

@ranma42 ranma42 closed this Mar 2, 2016
@ranma42 ranma42 deleted the fix-bootstrap branch April 20, 2016 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants