]> git.decadent.org.uk Git - dak.git/commitdiff
stip ./ from pathnames before they go into the db
authorMike O'Connor <stew@vireo.org>
Fri, 13 Mar 2009 20:13:27 +0000 (16:13 -0400)
committerMike O'Connor <stew@vireo.org>
Fri, 13 Mar 2009 20:13:27 +0000 (16:13 -0400)
Signed-off-by: Mike O'Connor <stew@vireo.org>
daklib/dbconn.py

index 8b25d258d93958332882dd0a302e1dbe0295b276..89072918a2f2c25f4a7a5c81bf39fa7c26ca36ad 100755 (executable)
@@ -555,6 +555,8 @@ class DBConn(Singleton):
             for fullpath in fullpaths:
                 (path, file) = os.path.split(fullpath)
 
+                if path.startswith( "./" ):
+                    path = path[2:]
                 # Get the necessary IDs ...
                 file_id = self.get_or_set_contents_file_id(file)
                 path_id = self.get_or_set_contents_path_id(path)