summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
Diffstat (limited to 'manifest_xml.py')
-rw-r--r--manifest_xml.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index 030da180..53f33537 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -126,11 +126,11 @@ class XmlManifest(object):
126 self.Override(name) 126 self.Override(name)
127 127
128 try: 128 try:
129 if os.path.exists(self.manifestFile): 129 if os.path.lexists(self.manifestFile):
130 os.remove(self.manifestFile) 130 os.remove(self.manifestFile)
131 os.symlink('manifests/%s' % name, self.manifestFile) 131 os.symlink('manifests/%s' % name, self.manifestFile)
132 except OSError: 132 except OSError as e:
133 raise ManifestParseError('cannot link manifest %s' % name) 133 raise ManifestParseError('cannot link manifest %s: %s' % (name, str(e)))
134 134
135 def _RemoteToXml(self, r, doc, root): 135 def _RemoteToXml(self, r, doc, root):
136 e = doc.createElement('remote') 136 e = doc.createElement('remote')