aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMarja Hassinen <ext-marja.2.hassinen@nokia.com>2009-06-16 15:44:33 +0300
committerMarja Hassinen <ext-marja.2.hassinen@nokia.com>2009-06-16 15:44:33 +0300
commit66844233cda6c80847bb45c7d899bbded4be809b (patch)
treee84e89aea8450852b26f91337579265b5dd1bf88 /python
parente9c3a9ad843f92b77f731a3cce95e0e600eaa3f0 (diff)
Fixing: the temporary file shouldn't have .context suffix, so that it won't be
read by the client.
Diffstat (limited to 'python')
-rw-r--r--python/ContextKit/flexiprovider.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/ContextKit/flexiprovider.py b/python/ContextKit/flexiprovider.py
index a75951c2..ef704a21 100644
--- a/python/ContextKit/flexiprovider.py
+++ b/python/ContextKit/flexiprovider.py
@@ -51,7 +51,7 @@ def update_context_providers(xml, dir='.'):
else:
outfilename = dir + '/context-provide.context'
tmpdir = outfilename[:outfilename.rindex('/')]
- tmpfd, tmpfn = tempfile.mkstemp('.context', 'context-provide-', tmpdir)
+ tmpfd, tmpfn = tempfile.mkstemp('.contexttemp', 'context-provide-', tmpdir)
os.write(tmpfd, xml)
os.close(tmpfd)
os.rename(tmpfn, outfilename)