From c6641878c235f25f559deec3fa5b63a2ffabf78d Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Mon, 8 Feb 2010 17:24:43 +0000 Subject: [PATCH] Make use of new module constfunc. svn: r14285 --- src/plugins/export/ExportPkg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/export/ExportPkg.py b/src/plugins/export/ExportPkg.py index 264951842..ea3b40d82 100644 --- a/src/plugins/export/ExportPkg.py +++ b/src/plugins/export/ExportPkg.py @@ -62,6 +62,7 @@ from ExportOptions import WriterOptionBox import gen.proxy from ExportXml import XmlWriter import Utils +import constfunc #------------------------------------------------------------------------- # @@ -232,7 +233,7 @@ class PackageWriter(object): tarinfo = tarfile.TarInfo('data.gramps') tarinfo.size = len(g.getvalue()) tarinfo.mtime = time.time() - if os.sys.platform != "win32": + if not constfunc.win(): tarinfo.uid = os.getuid() tarinfo.gid = os.getgid() g.seek(0)