[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - app.py:1.50
Fred L. Drake, Jr.
fred at zope.com
Tue May 4 16:15:36 EDT 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv1203
Modified Files:
app.py
Log Message:
we only need to load a mutable copy of things if we're going to write
into them
=== Packages/zpkgtools/zpkgtools/app.py 1.49 => 1.50 ===
--- Packages/zpkgtools/zpkgtools/app.py:1.49 Tue May 4 13:11:44 2004
+++ Packages/zpkgtools/zpkgtools/app.py Tue May 4 16:15:35 2004
@@ -281,9 +281,11 @@
self.dependencies = None
self.destination = None
self.pubinfo = None
- self.source = self.ip.loader.load_mutable_copy(self.url)
+ self.source = self.ip.loader.load(self.url)
specs = include.load(self.source, url=self.url)
- self.ip.addIncludes(self.source, specs.loads)
+ if specs.loads:
+ self.source = self.ip.loader.load_mutable_copy(self.url)
+ self.ip.addIncludes(self.source, specs.loads)
specs.collection.cook()
specs.distribution.cook()
self.collection = specs.collection
More information about the Zope-CVS
mailing list