From: Mike O'Connor Date: Fri, 30 Oct 2009 09:08:39 +0000 (+0000) Subject: minor fixes X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f33a32fe38b1ace0ee0b499847a1ce10ed4473b;p=dak minor fixes --- diff --git a/dak/contents.py b/dak/contents.py index c0d00c85..831822a3 100755 --- a/dak/contents.py +++ b/dak/contents.py @@ -209,7 +209,7 @@ class ContentFile(object): def __init__(self, filename, suite_str, - suite_id) + suite_id): self.filename = filename self.filenames = {} @@ -306,7 +306,7 @@ class DebContentFile(ContentFile): self.cursor.execute("""SELECT file, component || section || '/' || package FROM deb_contents WHERE ( arch=2 or arch = :arch) AND suite = :suite - """, { 'arch':self.arch_id, 'suite':self.suite_id } + """, { 'arch':self.arch_id, 'suite':self.suite_id } ) class UdebContentFile(ContentFile): def __init__(self, @@ -314,7 +314,7 @@ class UdebContentFile(ContentFile): suite_str, suite_id, section_name, - section_id) + section_id): ContentFile.__init__(self, filename, suite_str, diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 34d54b5e..e651916a 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -2119,6 +2119,7 @@ class DBConn(Singleton): self.tbl_suite = Table('suite', self.db_meta, autoload=True) self.tbl_suite_architectures = Table('suite_architectures', self.db_meta, autoload=True) self.tbl_suite_src_formats = Table('suite_src_formats', self.db_meta, autoload=True) + self.tbl_udeb_contents = Table('udeb_contents', self.db_meta, autoload=True) self.tbl_uid = Table('uid', self.db_meta, autoload=True) def __setupmappers(self):