From: Mike O'Connor Date: Fri, 13 Mar 2009 20:13:27 +0000 (-0400) Subject: stip ./ from pathnames before they go into the db X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=9af6678887f8ad11a3fddc43c87e4477723cafe3;hp=-c;p=dak.git stip ./ from pathnames before they go into the db Signed-off-by: Mike O'Connor --- 9af6678887f8ad11a3fddc43c87e4477723cafe3 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)