[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - app.py:1.61
Fred L. Drake, Jr.
fred at zope.com
Wed May 12 15:42:42 EDT 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv30737
Modified Files:
app.py
Log Message:
remove unused cruft from the dependency tracking
=== Packages/zpkgtools/zpkgtools/app.py 1.60 => 1.61 ===
--- Packages/zpkgtools/zpkgtools/app.py:1.60 Wed May 12 14:58:37 2004
+++ Packages/zpkgtools/zpkgtools/app.py Wed May 12 15:42:39 2004
@@ -85,7 +85,6 @@
if self.resource not in self.locations:
self.error("unknown resource: %s" % self.resource)
self.resource_url = self.locations[self.resource]
- self.handled_resources = sets.Set()
#
release_name = self.options.release_name
self.target_name = "%s-%s" % (release_name, self.options.version)
@@ -101,12 +100,11 @@
"""
top = self.get_component(self.resource, self.resource_url)
top.write_package(self.destination)
- handled = sets.Set()
- required = top.get_dependencies()
- remaining = required
if self.options.build_type in ("application", "collection"):
depsdir = os.path.join(self.destination, "Dependencies")
first = True
+ handled = sets.Set()
+ remaining = top.get_dependencies()
while remaining:
resource = remaining.pop()
handled.add(resource)
@@ -114,7 +112,6 @@
# it's an external dependency, so we do nothing for now
self.logger.warn("ignoring resource %r (no source)"
% resource)
- required.add(resource)
continue
#
location = self.locations[resource]
More information about the Zope-CVS
mailing list