]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/dbconn.py
stip ./ from pathnames before they go into the db
[dak.git] / 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)