X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fpackagelist.py;h=4a671839e11733b6085c298a2651c1d99d09174b;hb=46c004587d4467079853324c53a927c25823f5fd;hp=ddb5c8180275d1daa1882a2f2fb109616a887eeb;hpb=a2ceeb816dbaf631c20a3290ee78777a8c909636;p=dak.git diff --git a/daklib/packagelist.py b/daklib/packagelist.py index ddb5c818..4a671839 100644 --- a/daklib/packagelist.py +++ b/daklib/packagelist.py @@ -27,7 +27,7 @@ class InvalidSource(Exception): class PackageListEntry(object): def __init__(self, name, package_type, section, component, priority, **other): self.name = name - self.package_type = package_type + self.type = package_type self.section = section self.component = component self.priority = priority @@ -53,6 +53,8 @@ class PackageListEntry(object): def built_in_suite(self, suite): built = False for arch in suite.architectures: + if arch.arch_string == 'source': + continue built_on_arch = self.built_on_architecture(arch.arch_string) if built_on_arch: return True @@ -90,7 +92,7 @@ class PackageList(object): # [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:])