]> err.no Git - dak/commitdiff
daklib/policy.py: Fall back to source component from pool file
authorTollef Fog Heen <tfheen@varnish-software.com>
Wed, 18 Sep 2013 08:52:49 +0000 (10:52 +0200)
committerTollef Fog Heen <tfheen@err.no>
Wed, 18 Sep 2013 08:52:49 +0000 (10:52 +0200)
Signed-off-by: Tollef Fog Heen <tfheen@err.no>
daklib/policy.py

index aeed9a2c19cbfb679274520e3418a73f42dc3722..94aa7b637a9275ca13d93d9e585938534929cf3f 100644 (file)
@@ -290,6 +290,9 @@ class PolicyQueueUploadHandler(object):
                     if self._source_override(component) is not None:
                         source_component = component
                         break
+                    # Fall back to the one from the pool file
+                    source_component = source.poolfile.component.component_name
+                    break
 
         if source is not None:
             override = self._source_override(source_component)