Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 455022

Summary: Fix empty phase when directory provided is a symlink
Product: Gentoo Hosted Projects Reporter: Guy Martin (RETIRED) <gmsoft>
Component: CatalystAssignee: 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

Description Guy Martin (RETIRED) gentoo-dev 2013-02-01 13:35:04 UTC
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.
Comment 1 Matt Turner gentoo-dev 2013-02-05 08:34:59 UTC
Applied. Thanks!