[Zope3-checkins] CVS: Zope3/src/zope/app/fssync - committer.py:1.11

Guido van Rossum guido@python.org
Thu, 5 Jun 2003 17:50:47 -0400


Update of /cvs-repository/Zope3/src/zope/app/fssync
In directory cvs.zope.org:/tmp/cvs-serv6651

Modified Files:
	committer.py 
Log Message:
Skip updating existing objects whose entry is empty; this can happen
during a checkin (during a commit, the checker is supposed to have
prevented us from getting this far).


=== Zope3/src/zope/app/fssync/committer.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/fssync/committer.py:1.10	Thu Jun  5 16:52:45 2003
+++ Zope3/src/zope/app/fssync/committer.py	Thu Jun  5 17:50:46 2003
@@ -282,6 +282,9 @@
         if entry.get("flag") == "removed":
             delete_item(container, name)
             return
+        if not entry:
+            # This object was not included on the filesystem; skip it
+            return
         obj = traverseName(container, name)
         adapter = get_adapter(obj)
         if IObjectDirectory.isImplementedBy(adapter):