From 80f423196948257284361027ef114614d9350a48 Mon Sep 17 00:00:00 2001
From: Mikolaj Izdebski <mizdebsk@redhat.com>
Date: Nov 30 2018 04:59:17 +0000
Subject: Update source when recycling build


Fixes: #1179

---

diff --git a/hub/kojihub.py b/hub/kojihub.py
index 2b267a5..ac6f09f 100644
--- a/hub/kojihub.py
+++ b/hub/kojihub.py
@@ -5179,7 +5179,7 @@ def recycle_build(old, data):
 
     data['id'] = old['id']
     update = UpdateProcessor('build', clauses=['id=%(id)s'], values=data)
-    update.set(**dslice(data, ['state', 'task_id', 'owner', 'start_time', 'completion_time', 'epoch']))
+    update.set(**dslice(data, ['state', 'task_id', 'owner', 'start_time', 'completion_time', 'epoch', 'source']))
     update.rawset(create_event='get_event()')
     update.execute()
     builddir = koji.pathinfo.build(data)

