From: Mike O'Connor Date: Sun, 15 Mar 2009 20:44:49 +0000 (-0400) Subject: strip ./ from front of paths during contents.bootstrap X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ab279e1f1cdff0fc689c894abcd7d0620603555;p=dak strip ./ from front of paths during contents.bootstrap Signed-off-by: Mike O'Connor --- 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)