[Checkins] SVN: Products.GenericSetup/trunk/Products/GenericSetup/ When exporting a tarball, make the directory entries executable.
Maurits van Rees
m.van.rees at zestsoftware.nl
Wed Mar 3 16:43:21 EST 2010
Log message for revision 109626:
When exporting a tarball, make the directory entries executable.
Changed:
U Products.GenericSetup/trunk/Products/GenericSetup/CHANGES.txt
U Products.GenericSetup/trunk/Products/GenericSetup/context.py
-=-
Modified: Products.GenericSetup/trunk/Products/GenericSetup/CHANGES.txt
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/CHANGES.txt 2010-03-03 21:19:43 UTC (rev 109625)
+++ Products.GenericSetup/trunk/Products/GenericSetup/CHANGES.txt 2010-03-03 21:43:21 UTC (rev 109626)
@@ -4,6 +4,8 @@
1.6.0 (unreleased)
------------------
+- When exporting a tarball, make the directory entries executable.
+
- When the MailHost smtp_uid or smtp_pwd settings are None, export
them as empty string, to avoid an AttributeError during export.
Modified: Products.GenericSetup/trunk/Products/GenericSetup/context.py
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/context.py 2010-03-03 21:19:43 UTC (rev 109625)
+++ Products.GenericSetup/trunk/Products/GenericSetup/context.py 2010-03-03 21:43:21 UTC (rev 109626)
@@ -445,6 +445,8 @@
if path not in self._archive.getnames():
info = TarInfo(path)
info.type = DIRTYPE
+ # tarfile.filemode(493) == '-rwxr-xr-x'
+ info.mode = 493
info.mtime = time.time()
self._archive.addfile(info)
parents.pop()
More information about the checkins
mailing list