summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
authorRenaud Paquay <rpaquay@google.com>2016-11-11 14:25:29 -0800
committerRenaud Paquay <rpaquay@google.com>2017-08-31 13:49:36 -0700
commit010fed771183c23c0e7d04a4e7292782f68de9db (patch)
tree438b928fa1adaa7105d88462299513ca59c47c9f /manifest_xml.py
parente8595e9df7980b0b7d9111de43d294c4439d474c (diff)
downloadgit-repo-010fed771183c23c0e7d04a4e7292782f68de9db.tar.gz
Replace all os.remove calls
os.remove raises an exception when deleting read-only files on Windows. Replace all calls with calls to platform_utils.remove, which deals with deals with that issue. Change-Id: I4dc9e0c9a36b4238880520c69f5075eca40f3e66
Diffstat (limited to 'manifest_xml.py')
-rw-r--r--manifest_xml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index 05651c6c..9b5d7847 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -166,7 +166,7 @@ class XmlManifest(object):
166 166
167 try: 167 try:
168 if os.path.lexists(self.manifestFile): 168 if os.path.lexists(self.manifestFile):
169 os.remove(self.manifestFile) 169 platform_utils.remove(self.manifestFile)
170 platform_utils.symlink(os.path.join('manifests', name), self.manifestFile) 170 platform_utils.symlink(os.path.join('manifests', name), self.manifestFile)
171 except OSError as e: 171 except OSError as e:
172 raise ManifestParseError('cannot link manifest %s: %s' % (name, str(e))) 172 raise ManifestParseError('cannot link manifest %s: %s' % (name, str(e)))