From 9ab279e1f1cdff0fc689c894abcd7d0620603555 Mon Sep 17 00:00:00 2001 From: Mike O'Connor Date: Sun, 15 Mar 2009 16:44:49 -0400 Subject: [PATCH] strip ./ from front of paths during contents.bootstrap 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 9801fdfd..38791290 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -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) -- 2.39.5