aboutsummaryrefslogtreecommitdiff
path: root/utils/auc/src
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2018-03-23 01:51:32 +0100
committerDaniel Golle <daniel@makrotopia.org>2018-03-23 01:53:09 +0100
commita7a02b4d87cfccb69a1375dca7babe5530fa7478 (patch)
tree3bba6bf57cff80f1f02b63c18025e9c78e16832e /utils/auc/src
parentdd0145616cece9b2259ea1a580d6bdac448b97ee (diff)
auc: always send version when requesting image
Fixes #5799 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'utils/auc/src')
-rw-r--r--utils/auc/src/auc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/auc/src/auc.c b/utils/auc/src/auc.c
index 4904e15e5..6c53b1bb5 100644
--- a/utils/auc/src/auc.c
+++ b/utils/auc/src/auc.c
@@ -964,10 +964,12 @@ int main(int args, char *argv[]) {
newversion = blobmsg_get_string(tbc[CHECK_VERSION]);
fprintf(stdout, "new %s release %s found.\n", distribution, newversion);
} else {
+ newversion = version;
fprintf(stdout, "staying on %s release version %s\n", distribution, version);
- blobmsg_add_string(&reqbuf, "version", version);
};
+ blobmsg_add_string(&reqbuf, "version", newversion);
+
if (tbc[CHECK_UPGRADES]) {
fprintf(stdout, "package updates:\n");
print_package_updates(tbc[CHECK_UPGRADES]);