Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455022 - Fix empty phase when directory provided is a symlink
Summary: Fix empty phase when directory provided is a symlink
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matt Turner
URL: http://git.overlays.gentoo.org/gitweb...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-01 13:35 UTC by Guy Martin (RETIRED)
Modified: 2013-02-05 08:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Make sure shutil.rmtree() isn't passed a symlink (catalyst-rmtree.patch,645 bytes, text/plain)
2013-02-01 13:35 UTC, Guy Martin (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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!