summaryrefslogtreecommitdiff
path: root/baserockimport/mainloop.py
diff options
context:
space:
mode:
Diffstat (limited to 'baserockimport/mainloop.py')
-rw-r--r--baserockimport/mainloop.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/baserockimport/mainloop.py b/baserockimport/mainloop.py
index 057ab98..b9f1b9b 100644
--- a/baserockimport/mainloop.py
+++ b/baserockimport/mainloop.py
@@ -293,7 +293,14 @@ class ImportLoop(object):
# files are named for project name rather than package name. In this
# case we will generate the lorry, and try to add it to the set, at
# which point LorrySet will notice the existing one and merge the two.
- lorry = self.lorry_set.find_lorry_for_package(kind, name)
+ comp = None
+
+ if 'package_comp_callback' in self.importers[kind]['kwargs']:
+ comp = self.importers[kind]['kwargs']['package_comp_callback']
+ else:
+ comp = lambda x, y: x == y
+
+ lorry = self.lorry_set.find_lorry_for_package(kind, name, comp)
if lorry is None:
lorry = self._generate_lorry_for_package(kind, name)