summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--manifest_xml.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index 122393cf..6606575c 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -118,11 +118,11 @@ class XmlManifest(object):
118 self.Override(name) 118 self.Override(name)
119 119
120 try: 120 try:
121 if os.path.exists(self.manifestFile): 121 if os.path.lexists(self.manifestFile):
122 os.remove(self.manifestFile) 122 os.remove(self.manifestFile)
123 os.symlink('manifests/%s' % name, self.manifestFile) 123 os.symlink('manifests/%s' % name, self.manifestFile)
124 except OSError: 124 except OSError as e:
125 raise ManifestParseError('cannot link manifest %s' % name) 125 raise ManifestParseError('cannot link manifest %s: %s' % (name, str(e)))
126 126
127 def _RemoteToXml(self, r, doc, root): 127 def _RemoteToXml(self, r, doc, root):
128 e = doc.createElement('remote') 128 e = doc.createElement('remote')