[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - include.py:1.4
Fred L. Drake, Jr.
fred at zope.com
Thu Mar 18 12:50:29 EST 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv32060
Modified Files:
include.py
Log Message:
- fix typo in comment
- re-use logic where possible
=== Packages/zpkgtools/zpkgtools/include.py 1.3 => 1.4 ===
--- Packages/zpkgtools/zpkgtools/include.py:1.3 Fri Mar 12 15:56:53 2004
+++ Packages/zpkgtools/zpkgtools/include.py Thu Mar 18 12:50:28 2004
@@ -75,7 +75,7 @@
self.includes = {}
f = None
if specfile is None:
- # Read soruce/INCLUDES.txt, if it exists.
+ # Read source/INCLUDES.txt, if it exists.
specfile = os.path.join(source, "INCLUDES.txt")
if os.path.exists(specfile):
f = open(specfile, "rU")
@@ -275,10 +275,7 @@
def includeFromCvs(self, cvsurl, destination):
loader = self.getLoader(cvsurl)
source = loader.load(cvsurl)
- if os.path.isfile(source):
- shutil.copy2(source, destination)
- else:
- self.copyTree(source, destination)
+ self.includeFromLocalTree(source, destination)
def getLoader(self, cvsurl):
if self.cvs_loader is None and self.cvsurl is not None:
More information about the Zope-CVS
mailing list