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

Unified Diff: client/cipd.py

Issue 2066913002: swarming-cipd: fix for Windows (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: file_path.remove Created 4 years, 6 months 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 | client/utils/file_path.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/cipd.py
diff --git a/client/cipd.py b/client/cipd.py
index 6d8eb3e3d5f32643e07cda7b5100c6e5a220da00..b4e6b80377714f15dfc97603d7b43eec06aaef65 100644
--- a/client/cipd.py
+++ b/client/cipd.py
@@ -395,7 +395,7 @@ def get_client(
# binary.
binary_path = unicode(os.path.join(cache_dir, 'cipd' + EXECUTABLE_SUFFIX))
if fs.isfile(binary_path):
- fs.unlink(binary_path)
+ file_path.remove(binary_path)
instance_cache.hardlink(instance_id, binary_path, 0511) # -r-x--x--x
yield CipdClient(binary_path)
« no previous file with comments | « no previous file | client/utils/file_path.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698