From dbde49fbf5df8c6da370dee43d345a53b80a7582 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Date: Fri, 28 Dec 2018 11:06:06 +0100 Subject: [PATCH] Require device firmware to be rebuilt after device configuration change --- manager/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager/views.py b/manager/views.py index cdc903c..c6f5c79 100644 --- a/manager/views.py +++ b/manager/views.py @@ -106,7 +106,7 @@ def hosts(request): return render(request, "manager/hosts", {"device": device}) def mkfirmware(device, path): - if device.firmware and device.firmware > device.model.firmware and glob.glob("%s/%s.bin" % (path, device.id)): + if device.firmware and device.firmware > device.model.firmware and device.firmware > device.changed and glob.glob("%s/%s.bin" % (path, device.id)): return True BEFORE = os.getcwd()