[Zope-Checkins] CVS: Zope/inst - install.py:1.1.2.5

Chris McDonough chrism@zope.com
Tue, 26 Nov 2002 02:23:16 -0500


Update of /cvs-repository/Zope/inst
In directory cvs.zope.org:/tmp/cvs-serv21303

Modified Files:
      Tag: chrism-install-branch
	install.py 
Log Message:
Add explanation of regex.


=== Zope/inst/install.py 1.1.2.4 => 1.1.2.5 ===
--- Zope/inst/install.py:1.1.2.4	Tue Nov 26 02:19:08 2002
+++ Zope/inst/install.py	Tue Nov 26 02:23:16 2002
@@ -19,6 +19,9 @@
 import sys, getopt, os, stat, glob, re
 from shutil import copy2, rmtree
 default_omitpattern = r'(.*~|CVS|\.[^./].*)$'
+# the last pattern in the group above allows relative paths
+# eg. "../../some/file" but attempts to prevent dotfiles from
+# making their way in.
 
 def main(src, dst, symlinks=1, dirmode=0755, fmode=0644,
          omitpattern=default_omitpattern, retain_xbit=1):