From 7f898307f54eaf007e893482fb6c270f6325a2b9 Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Thu, 27 Oct 2016 13:47:13 +0200 Subject: [PATCH] Remove 'module-' prefix from koji_tag in module_depsolving_wrapper --- module_build_service/pdc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module_build_service/pdc.py b/module_build_service/pdc.py index c637d5f3..66eb1abf 100644 --- a/module_build_service/pdc.py +++ b/module_build_service/pdc.py @@ -199,6 +199,10 @@ def module_depsolving_wrapper(session, module_list, strict=True): # Make sure that these are dicts from PDC ... ensures all values module_list = set([get_module_tag(session, x, strict) for x in module_list]) + # pdc-updater adds "module-" prefix to koji_tag, but here we expect koji_tag + # is just NVR of a module, so remove the "module-" prefix. + module_list = set([x[len("module-"):] if x.startswith("module-") else x + for x in module_list]) seen = set() # don't query pdc for the same items all over again while True: