From 93ad288597287b1818bcab639cf41bdf52e3b76e Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sat, 2 Sep 2006 01:47:08 +0000 Subject: [PATCH] * src/plugins/WritePkg.py: don't set uid on Windows svn: r7299 --- ChangeLog | 1 + src/plugins/WritePkg.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2f5bff718..9ae708c13 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2006-09-01 Brian Matherly * src/plugins/Calendar.py: fix filter typo + * src/plugins/WritePkg.py: don't set uid on Windows 2006-09-01 Alex Roitman * src/GrampsDb/_DbUtils.py: Use normal addition: this updates diff --git a/src/plugins/WritePkg.py b/src/plugins/WritePkg.py index 36b2b106a..9e5469145 100644 --- a/src/plugins/WritePkg.py +++ b/src/plugins/WritePkg.py @@ -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()