]> git.decadent.org.uk Git - dak.git/commitdiff
Merge commit 'stew/content_generation' into merge
authorJoerg Jaspert <joerg@debian.org>
Fri, 13 Mar 2009 20:14:21 +0000 (21:14 +0100)
committerJoerg Jaspert <joerg@debian.org>
Fri, 13 Mar 2009 20:14:21 +0000 (21:14 +0100)
* commit 'stew/content_generation':
  stip ./ from pathnames before they go into the db

Signed-off-by: Joerg Jaspert <joerg@debian.org>
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)