Author: dmeyer
Date: Wed Apr 19 15:41:24 2006
New Revision: 1422

Modified:
   trunk/beacon/src/parser.py

Log:
Softlink patch 3: Scan for unscanned parents

Modified: trunk/beacon/src/parser.py
==============================================================================
--- trunk/beacon/src/parser.py  (original)
+++ trunk/beacon/src/parser.py  Wed Apr 19 15:41:24 2006
@@ -62,7 +62,12 @@
         # parent should be in the db, so commit and it should work
         db.commit()
         if not parent._beacon_id:
-            # this should never happen
+            # Still not in the database? Well, this should never happen but 
does
+            # when we use some strange softlinks around the filesystem. So in
+            # that case we need to scan the parent, too.
+            parse(db, parent, True)
+        if not parent._beacon_id:
+            # This should never happen
             raise AttributeError('parent for %s has no dbid' % item)
     if item._beacon_data['mtime'] == mtime:
         log.debug('up-to-date %s' % item)


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to