]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/packagelist.py
Add by-hash support
[dak.git] / daklib / packagelist.py
index ddb5c8180275d1daa1882a2f2fb109616a887eeb..4a671839e11733b6085c298a2651c1d99d09174b 100644 (file)
@@ -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):
             # <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:])