From 9af6678887f8ad11a3fddc43c87e4477723cafe3 Mon Sep 17 00:00:00 2001 From: Mike O'Connor Date: Fri, 13 Mar 2009 16:13:27 -0400 Subject: [PATCH] stip ./ from pathnames before they go into the db Signed-off-by: Mike O'Connor --- daklib/dbconn.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 8b25d258..89072918 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -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) -- 2.39.5