89ad4b
From 3a601d27de845907e2e11411589321e28c8604b7 Mon Sep 17 00:00:00 2001
89ad4b
From: Ralph Bean <rbean@redhat.com>
89ad4b
Date: Sep 11 2018 00:47:55 +0000
89ad4b
Subject: Fix bug breaking local builds.
89ad4b
89ad4b
89ad4b
This bug was reported by @nphillip here https://bodhi.fedoraproject.org/updates/FEDORA-2018-c9c3a37d96
89ad4b
89ad4b
The issue is that the `record_filtered_rpms` method returns a new xmd
89ad4b
buildrequires block, but whole buildrequires entries were omitted in the return
89ad4b
value for local builds.  This one-liner includes them again.
89ad4b
89ad4b
---
89ad4b
89ad4b
diff --git a/module_build_service/utils/submit.py b/module_build_service/utils/submit.py
89ad4b
index 95f3060..ac70440 100644
89ad4b
--- a/module_build_service/utils/submit.py
89ad4b
+++ b/module_build_service/utils/submit.py
89ad4b
@@ -59,6 +59,7 @@ def record_filtered_rpms(mmd):
89ad4b
         # In case this is module resubmit or local build, the filtered_rpms
89ad4b
         # will already be there, so there is no point in generating them again.
89ad4b
         if "filtered_rpms" in req_data:
89ad4b
+            new_buildrequires[req_name] = req_data
89ad4b
             continue
89ad4b
 
89ad4b
         # We can just get the first modulemd data from result right here thanks to
89ad4b