Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From c14eefb0e728c8504635efa5aafdd778a0cf4536 Mon Sep 17 00:00:00 2001
- From: Denis Dzyubenko <denis.dzyubenko@nokia.com>
- Date: Tue, 1 Mar 2011 12:05:47 +0100
- Subject: [PATCH] QLocale: create temp files one the same device so that rename() will work properly
- ---
- util/local_database/qlocalexml2cpp.py | 6 +++---
- 1 files changed, 3 insertions(+), 3 deletions(-)
- diff --git a/util/local_database/qlocalexml2cpp.py b/util/local_database/qlocalexml2cpp.py
- index 4929ef6..ab3f1da 100755
- --- a/util/local_database/qlocalexml2cpp.py
- +++ b/util/local_database/qlocalexml2cpp.py
- @@ -448,7 +448,7 @@ def main():
- if not os.path.isfile(qtsrcdir + "/src/corelib/tools/qlocale.qdoc"):
- usage()
- - (data_temp_file, data_temp_file_path) = tempfile.mkstemp("qlocale_data_p")
- + (data_temp_file, data_temp_file_path) = tempfile.mkstemp("qlocale_data_p", dir=qtsrcdir)
- data_temp_file = os.fdopen(data_temp_file, "w")
- qlocaledata_file = open(qtsrcdir + "/src/corelib/tools/qlocale_data_p.h", "r")
- s = qlocaledata_file.readline()
- @@ -766,7 +766,7 @@ def main():
- # qlocale.h
- - (qlocaleh_temp_file, qlocaleh_temp_file_path) = tempfile.mkstemp("qlocale.h")
- + (qlocaleh_temp_file, qlocaleh_temp_file_path) = tempfile.mkstemp("qlocale.h", dir=qtsrcdir)
- qlocaleh_temp_file = os.fdopen(qlocaleh_temp_file, "w")
- qlocaleh_file = open(qtsrcdir + "/src/corelib/tools/qlocale.h", "r")
- s = qlocaleh_file.readline()
- @@ -825,7 +825,7 @@ def main():
- # qlocale.qdoc
- - (qlocaleqdoc_temp_file, qlocaleqdoc_temp_file_path) = tempfile.mkstemp("qlocale.qdoc")
- + (qlocaleqdoc_temp_file, qlocaleqdoc_temp_file_path) = tempfile.mkstemp("qlocale.qdoc", dir=qtsrcdir)
- qlocaleqdoc_temp_file = os.fdopen(qlocaleqdoc_temp_file, "w")
- qlocaleqdoc_file = open(qtsrcdir + "/src/corelib/tools/qlocale.qdoc", "r")
- s = qlocaleqdoc_file.readline()
- --
- 1.7.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement