Commit d2e78ff6 authored by maruel@chromium.org's avatar maruel@chromium.org

Allow gclient revert to remove symlinks

Previously links weren't caught at the appropriate point and instead passed to RemoveDirectory which then rejected them because they were links.

Patch contributed by Nasser <nasser@codeaurora>

Review URL: http://codereview.chromium.org/541012

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@35936 0039d316-1c4b-4281-b951-d872f2087c98
parent 346737cf
......@@ -485,7 +485,7 @@ class SVNWrapper(SCMWrapper, scm.SVN):
try:
if not os.path.exists(file_path):
pass
elif os.path.isfile(file_path):
elif os.path.isfile(file_path) or os.path.islink(file_path):
logging.info('os.remove(%s)' % file_path)
os.remove(file_path)
elif os.path.isdir(file_path):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment