[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - include.py:1.23
Fred L. Drake, Jr.
fred at zope.com
Thu Apr 1 17:34:22 EST 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv7759
Modified Files:
include.py
Log Message:
change the manifest interface a little: return the completed list
from drop_manifest() rather than the empty list from add_manifest()
=== Packages/zpkgtools/zpkgtools/include.py 1.22 => 1.23 ===
--- Packages/zpkgtools/zpkgtools/include.py:1.22 Thu Apr 1 15:58:19 2004
+++ Packages/zpkgtools/zpkgtools/include.py Thu Apr 1 17:34:21 2004
@@ -290,17 +290,14 @@
# rather than being implicit.
def add_manifest(self, destination):
- manifest = []
prefix = os.path.join(destination, "")
- self.manifests.append((prefix, manifest))
- return manifest
+ self.manifests.append((prefix, []))
def drop_manifest(self, destination):
prefix = os.path.join(destination, "")
for i in range(len(self.manifests)):
if self.manifests[i][0] == prefix:
- del self.manifests[i]
- return
+ return self.manifests.pop(i)[1]
raise ValueError("no manifest for %s" % destination)
def addSingleInclude(self, relpath, source, destination):
More information about the Zope-CVS
mailing list