]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/dbconn.py
int()
[dak.git] / daklib / dbconn.py
index 8b25d258d93958332882dd0a302e1dbe0295b276..24cb9044aa0579892df0936e857455d507413b49 100755 (executable)
@@ -168,7 +168,7 @@ class DBConn(Singleton):
         @return: the database id for the given suite
 
         """
-        return self.__get_id('id', 'suite', 'suite_name', suite)
+        return int(self.__get_id('id', 'suite', 'suite_name', suite))
 
     def get_section_id(self, section):
         """
@@ -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)