[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - app.py:1.30

Fred L. Drake, Jr. fred at zope.com
Mon Apr 19 11:57:29 EDT 2004


Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv8178

Modified Files:
	app.py 
Log Message:
use the new API call to process all the includes from a specification


=== Packages/zpkgtools/zpkgtools/app.py 1.29 => 1.30 ===
--- Packages/zpkgtools/zpkgtools/app.py:1.29	Mon Apr 19 11:12:53 2004
+++ Packages/zpkgtools/zpkgtools/app.py	Mon Apr 19 11:57:28 2004
@@ -103,8 +103,7 @@
             self.ip.createDistributionTree(pkgdest, spec)
         except cvsloader.CvsLoadingError, e:
             self.error(str(e))
-        for relpath, src in dist.includes.iteritems():
-            self.ip.addSingleInclude(relpath, src, self.destination)
+        self.ip.addIncludes(self.destination, dist)
         pkgdir = os.path.join(self.destination, pkgname)
         pkginfo = package.loadPackageInfo(pkgname, pkgdir, pkgname)
         setup_cfg = os.path.join(self.destination, "setup.cfg")
@@ -235,8 +234,7 @@
             self.add_collection_component(name, destination, spec)
 
         if distribution:
-            for relpath, src in dist.includes.iteritems():
-                self.ip.addSingleInclude(relpath, src, self.destination)
+            self.ip.addIncludes(self.destination, dist)
 
         self.create_manifest(destination)
         deps_file = os.path.join(source, "DEPENDENCIES.cfg")




More information about the Zope-CVS mailing list