[PATCH] capture mock output even if it exits immediately

Mike McLean mikem at redhat.com
Wed Jun 17 17:03:29 UTC 2015


---
 builder/kojid | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/builder/kojid b/builder/kojid
index 8243434..2e1add3 100755
--- a/builder/kojid
+++ b/builder/kojid
@@ -374,7 +374,7 @@ class BuildRoot(object):
                     results = os.listdir(resultdir)
                 except OSError:
                     # will happen when mock hasn't created the resultdir yet
-                    continue
+                    results = []
 
                 for fname in results:
                     if fname.endswith('.log') and not logs.has_key(fname):
-- 
1.9.3



More information about the koji-devel mailing list