[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - cvsloader.py:1.2
Fred L. Drake, Jr.
fred at zope.com
Fri Mar 5 19:34:57 EST 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv9747
Modified Files:
cvsloader.py
Log Message:
be more robust in dealing with CVS/Entries
=== Packages/zpkgtools/zpkgtools/cvsloader.py 1.1 => 1.2 ===
--- Packages/zpkgtools/zpkgtools/cvsloader.py:1.1 Fri Mar 5 16:39:19 2004
+++ Packages/zpkgtools/zpkgtools/cvsloader.py Fri Mar 5 19:34:56 2004
@@ -92,9 +92,9 @@
entries = open(entries, "rU")
for line in entries:
parts = line.split("/")
- if os.path.normcase(parts[1]) == os.path.normcase(basename):
- if len(parts) >= 6:
- tag = parts[5][1:].rstrip() or tag
+ if (len(parts) >= 6 and
+ os.path.normcase(parts[1]) == os.path.normcase(basename)):
+ tag = parts[5][1:].rstrip() or tag
break
modpath = _read_one_line(os.path.join(cvsdir, "Repository"))
repo = _read_one_line(os.path.join(cvsdir, "Root"))
More information about the Zope-CVS
mailing list