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

Jim Fulton jim at zope.com
Sun May 16 11:28:39 EDT 2004


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

Modified Files:
	app.py 
Log Message:
Added more output to warning about lack of a source.


=== Packages/zpkgtools/zpkgtools/app.py 1.62 => 1.63 ===
--- Packages/zpkgtools/zpkgtools/app.py:1.62	Wed May 12 17:54:20 2004
+++ Packages/zpkgtools/zpkgtools/app.py	Sun May 16 11:28:38 2004
@@ -98,6 +98,7 @@
         This method does everything needed to knit a distribution
         together; it should be refactored substantially.
         """
+        dep_sources = {} 
         top = self.get_component(self.resource, self.resource_url)
         top.write_package(self.destination)
         if self.options.build_type in ("application", "collection"):
@@ -111,8 +112,8 @@
                 handled.add(resource)
                 if resource not in self.locations:
                     # it's an external dependency, so we do nothing for now
-                    self.logger.warn("ignoring resource %r (no source)"
-                                     % resource)
+                    self.logger.warn("ignoring resource %r (no source) from %s"
+                                     % (resource, dep_sources.get(resource)))
                     continue
                 #
                 location = self.locations[resource]
@@ -123,6 +124,8 @@
                     os.mkdir(depsdir)
                     first = False
                 deps = component.get_dependencies()
+                for d in deps - handled:
+                    dep_sources[d] = resource
                 remaining |= (deps - handled)
                 fullname = ("%s-%s-%s"
                             % (resource, top.name, self.options.version))




More information about the Zope-CVS mailing list