* src/plugins/WritePkg.py: don't set uid on Windows

svn: r7299
This commit is contained in:
Brian Matherly 2006-09-02 01:47:08 +00:00
parent 6bd8a7514e
commit 07361c08ca
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
2006-09-01 Brian Matherly <brian@gramps-project.org>
* src/plugins/Calendar.py: fix filter typo
* src/plugins/WritePkg.py: don't set uid on Windows
2006-09-01 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_DbUtils.py: Use normal addition: this updates

View File

@ -188,8 +188,9 @@ class PackageWriter:
tarinfo = tarfile.TarInfo('data.gramps')
tarinfo.size = len(g.getvalue())
tarinfo.mtime = time.time()
tarinfo.uid = os.getuid()
tarinfo.gid = os.getgid()
if os.sys.platform != "win32":
tarinfo.uid = os.getuid()
tarinfo.gid = os.getgid()
g.seek(0)
archive.addfile(tarinfo,g)
archive.close()