From 11178872404c868a4c1a383d77716a844d49aff5 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 1 Mar 2011 11:44:35 +0000 Subject: [PATCH] noooooooo typo --- direct/src/p3d/DeploymentTools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/p3d/DeploymentTools.py b/direct/src/p3d/DeploymentTools.py index 59bac79e73..aed0b791d7 100644 --- a/direct/src/p3d/DeploymentTools.py +++ b/direct/src/p3d/DeploymentTools.py @@ -36,7 +36,7 @@ def archiveFilter(info): # all other files are chmodded to 0644. # Somewhat hacky, but it's the only way # permissions can work on a Windows box. - if info.type != DIRTYPE and '.' in info.name.rsplit('/', 1)[-1]: + if info.type != tarfile.DIRTYPE and '.' in info.name.rsplit('/', 1)[-1]: info.mode = 0644 else: info.mode = 0755 @@ -51,7 +51,7 @@ class TarInfoRoot(tarfile.TarInfo): gid = property(lambda self: 0, lambda self, x: None) uname = property(lambda self: "root", lambda self, x: None) gname = property(lambda self: "root", lambda self, x: None) - mode = property(lambda self: 0644 if self.type != DIRTYPE and \ + mode = property(lambda self: 0644 if self.type != tarfile.DIRTYPE and \ '.' in self.name.rsplit('/', 1)[-1] else 0755, lambda self, x: None)