Summary: | Fix empty phase when directory provided is a symlink | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Guy Martin (RETIRED) <gmsoft> |
Component: | Catalyst | Assignee: | Matt Turner <mattst88> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | catalyst |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=366009cf6a893ab44c98ff7e7a08b8130d24e98a | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Make sure shutil.rmtree() isn't passed a symlink |
Applied. Thanks! |
Created attachment 337592 [details] Make sure shutil.rmtree() isn't passed a symlink In python, os.path.isdir(myemp) returns true for symlinks to directories. However, shutil.rmtree() fails if it's being provided a symlink. The attached patch fixes that.