diff --git a/utils/auc/Makefile b/utils/auc/Makefile index 1a62db1a7..444067010 100644 --- a/utils/auc/Makefile +++ b/utils/auc/Makefile @@ -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 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]);