X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fdbconn.py;h=c0801b42511cbb2eac973e7b53bf3a82653cd3e8;hb=af5baf3a964a6a2437af8e52c79b844943cf6f1b;hp=fd2ea345a31942e882786bb36d9b872f8ec2f382;hpb=5ccdc44b42b2b56a0d70cd451dbd017af40bd006;p=dak.git diff --git a/daklib/dbconn.py b/daklib/dbconn.py index fd2ea345..c0801b42 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -558,10 +558,10 @@ class DBBinary(ORMObject): @rtype: text @return: stanza text of the control section. ''' - import apt_inst + import utils fullpath = self.poolfile.fullpath deb_file = open(fullpath, 'r') - stanza = apt_inst.debExtractControl(deb_file) + stanza = utils.deb_extract_control(deb_file) deb_file.close() return stanza @@ -3357,8 +3357,8 @@ class DBConn(object): mapper(Architecture, self.tbl_architecture, properties = dict(arch_id = self.tbl_architecture.c.id, suites = relation(Suite, secondary=self.tbl_suite_architectures, - order_by='suite_name', - backref=backref('architectures', order_by='arch_string'))), + order_by=self.tbl_suite.c.suite_name, + backref=backref('architectures', order_by=self.tbl_architecture.c.arch_string))), extension = validator) mapper(Archive, self.tbl_archive,