]> git.decadent.org.uk Git - dak.git/commitdiff
strip ./ from front of paths during contents.bootstrap
authorMike O'Connor <stew@vireo.org>
Sun, 15 Mar 2009 20:44:49 +0000 (16:44 -0400)
committerMike O'Connor <stew@vireo.org>
Sun, 15 Mar 2009 20:44:49 +0000 (16:44 -0400)
Signed-off-by: Mike O'Connor <stew@vireo.org>
daklib/dbconn.py

index 9801fdfdf25017121d9804e11d16a1d3d7d2adc1..38791290b244a8b6c65987277bfed71b5483668d 100755 (executable)
@@ -514,6 +514,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)