From 0f4fc9b7284dea8d7d13956af282bc00c5b04197 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Wed, 7 Jan 2015 16:34:48 +0000 Subject: add some debug and amend key --- baserockimport/lorryset.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.''' -- cgit v1.2.1