mirror of
https://github.com/openwrt/luci.git
synced 2026-01-13 20:00:29 +04:00
luci-app-attendedsysupgrade: enforce correct imagebuilder version
By passing the version_code parameter, we can error out if the imagebuilder that responded to the request isn't the same, mirroring the current behavior of auc. Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
This commit is contained in:
committed by
Paul Spooren
parent
264e465f70
commit
8860ca069c
@@ -476,6 +476,7 @@ return view.extend({
|
||||
request: {
|
||||
profile,
|
||||
version: candidates[0][0],
|
||||
version_code: revision,
|
||||
packages: Object.keys(packages).sort(),
|
||||
},
|
||||
};
|
||||
@@ -536,6 +537,7 @@ return view.extend({
|
||||
...firmware,
|
||||
packages: mapdata.request.packages,
|
||||
version: mapdata.request.version,
|
||||
version_code: mapdata.request.version_code,
|
||||
profile: mapdata.request.profile
|
||||
};
|
||||
this.pollFn = L.bind(function () {
|
||||
|
||||
Reference in New Issue
Block a user