Browse Source

auc: always send version when requesting image

Fixes #5799

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
lilik-openwrt-22.03
Daniel Golle 7 years ago
parent
commit
a7a02b4d87
2 changed files with 4 additions and 2 deletions
  1. +1
    -1
      utils/auc/Makefile
  2. +3
    -1
      utils/auc/src/auc.c

+ 1
- 1
utils/auc/Makefile View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=auc
PKG_VERSION:=0.0.9
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_LICENSE:=GPL-3.0
include $(INCLUDE_DIR)/package.mk


+ 3
- 1
utils/auc/src/auc.c View File

@ -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]);


Loading…
Cancel
Save