Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Unified Diff: scripts/common/chromium_utils.py

Issue 5975009: Fix handling of symbolic links in RemoveDirectory. Attempt at fixing repeate... (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/buildbot/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/common/chromium_utils.py
===================================================================
--- scripts/common/chromium_utils.py (revision 70240)
+++ scripts/common/chromium_utils.py (working copy)
@@ -238,7 +238,10 @@
if win32_api_avail:
win32api.SetFileAttributes(path, win32con.FILE_ATTRIBUTE_NORMAL)
try:
- return rmfunc(path)
+ if os.path.islink(path):
+ return os.remove(path)
+ else:
+ return rmfunc(path)
except EnvironmentError, e:
if e.errno != errno.EACCES:
raise
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698