[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - app.py:1.33
Fred L. Drake, Jr.
fred at zope.com
Tue Apr 20 11:27:55 EDT 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv19244
Modified Files:
app.py
Log Message:
generate the name of the release from the name of the resource, not
the publication name
=== Packages/zpkgtools/zpkgtools/app.py 1.32 => 1.33 ===
--- Packages/zpkgtools/zpkgtools/app.py:1.32 Mon Apr 19 23:37:23 2004
+++ Packages/zpkgtools/zpkgtools/app.py Tue Apr 20 11:27:55 2004
@@ -45,6 +45,8 @@
self.options = options
self.resource = locationmap.normalizeResourceId(options.resource)
self.resource_type, self.resource_name = self.resource.split(":", 1)
+ if not options.release_name:
+ options.release_name = self.resource_name
# Create a new directory for all temporary files to go in:
self.tmpdir = tempfile.mkdtemp(prefix=options.program + "-")
tempfile.tempdir = self.tmpdir
@@ -298,8 +300,6 @@
"""Load the primary resource and initialize internal metadata."""
self.source = self.loader.load(self.resource_url)
self.load_metadata()
- if not self.options.release_name:
- self.options.release_name = self.metadata.name.replace(" ", "-")
release_name = self.options.release_name
self.target_name = "%s-%s" % (release_name, self.options.version)
self.target_file = self.target_name + ".tar.bz2"
More information about the Zope-CVS
mailing list