# <name> <type> <component/section> <priority> [arch=<arch>[,<arch>]...]
name = fields[0]
package_type = fields[1]
- component, section = extract_component_from_section(fields[2])
+ section, component = extract_component_from_section(fields[2])
priority = fields[3]
other = dict(kv.split('=', 1) for kv in fields[4:])
p_all_amd64 = pl.packages_for_suite(suite_all_amd64)
self.assertEqual(len(p_all_amd64), 1)
+ p = p_all[0]
+ self.assertEqual(p.name, 'libdune-common-doc')
+ self.assertEqual(p.type, 'deb')
+ self.assertEqual(p.section, 'doc')
+ self.assertEqual(p.component, 'main')
+ self.assertEqual(p.priority, 'optional')
+ self.assertEqual(p.architectures, ['all'])
+
def testArchAny(self):
pl = PackageList(source_any)