summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2015-01-07 16:34:48 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2015-01-07 16:34:48 +0000
commit0f4fc9b7284dea8d7d13956af282bc00c5b04197 (patch)
treebe6cd361090a3c86ab77788304728f69f143c583
parent9160e609588e1a7f60385abb1193f5ac8d08d12f (diff)
downloadimport-0f4fc9b7284dea8d7d13956af282bc00c5b04197.tar.gz
add some debug and amend key
-rw-r--r--baserockimport/lorryset.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/baserockimport/lorryset.py b/baserockimport/lorryset.py
index eab3f47..d6cb9dd 100644
--- a/baserockimport/lorryset.py
+++ b/baserockimport/lorryset.py
@@ -110,7 +110,11 @@ class LorrySet(object):
def find_lorry_for_package(self, kind, package_name):
'''Find the lorry entry for a given package, or return None.'''
- return self.data[package_name] if package_name in self.data else None
+ logging.debug('Lorry set: %s', str(list(self.data.iteritems())))
+
+ key = '%s/%s' % (kind, package_name)
+ logging.debug('key: %s', key)
+ return self.data[key] if key in self.data else None
def _check_for_conflicts_in_standard_fields(self, existing, new):
'''Ensure that two lorries for the same project do actually match.'''