mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
buildtools: Properly set global variable
Since we didn’t declare ‘old_refill_task_list’ as global, we were just assigning a value to a local variable that was destroyed after we returned from this function. We clearly intended instead to assign to a global variable of the same name. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
8d61d3f8e0
commit
84dc7129ea
@ -107,6 +107,7 @@ def replace_refill_task_list(self):
|
||||
|
||||
def AUTOCLEANUP_STALE_FILES(bld):
|
||||
"""automatically clean up any files in bin that shouldn't be there"""
|
||||
global old_refill_task_list
|
||||
old_refill_task_list = Parallel.refill_task_list
|
||||
Parallel.refill_task_list = replace_refill_task_list
|
||||
Parallel.bld = bld
|
||||
|
Loading…
Reference in New Issue
Block a user