- q = projectB.query("""
- SELECT priority.priority AS prio, section.section AS sect
- FROM override, priority, section, suite
+ oldsection, oldsourcesection, oldpriority = None, None, None
+ for packagetype in ['source', 'binary']:
+ eqdsc = '!='
+ if packagetype == 'source':
+ eqdsc = '='
+ q = session.execute("""
+ SELECT priority.priority AS prio, section.section AS sect, override_type.type AS type
+ FROM override, priority, section, suite, override_type