auc: bump to version 0.1.6
Fixes running on release branches. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
4cdbe799b1
commit
004abfec75
2 changed files with 7 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=auc
|
PKG_NAME:=auc
|
||||||
PKG_VERSION:=0.1.5
|
PKG_VERSION:=0.1.6
|
||||||
PKG_RELEASE:=$(AUTORELEASE)
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
PKG_LICENSE:=GPL-3.0
|
PKG_LICENSE:=GPL-3.0
|
||||||
|
|
||||||
|
|
|
@ -1020,6 +1020,7 @@ static void process_branch(struct blob_attr *branch, bool only_active)
|
||||||
int remver;
|
int remver;
|
||||||
struct branch *br;
|
struct branch *br;
|
||||||
char *tmp, *arch_packages, *board_json_file;
|
char *tmp, *arch_packages, *board_json_file;
|
||||||
|
const char *brname;
|
||||||
|
|
||||||
blobmsg_parse(branches_policy, __BRANCH_MAX, tb, blobmsg_data(branch), blobmsg_len(branch));
|
blobmsg_parse(branches_policy, __BRANCH_MAX, tb, blobmsg_data(branch), blobmsg_len(branch));
|
||||||
|
|
||||||
|
@ -1030,7 +1031,8 @@ static void process_branch(struct blob_attr *branch, bool only_active)
|
||||||
tb[BRANCH_VERSIONS] && tb[BRANCH_TARGETS])
|
tb[BRANCH_VERSIONS] && tb[BRANCH_TARGETS])
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (only_active && strcmp(blobmsg_get_string(tb[BRANCH_NAME]), version))
|
brname = blobmsg_get_string(tb[BRANCH_NAME]);
|
||||||
|
if (only_active && strncmp(brname, version, strlen(brname)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* check if target is offered in branch and get arch_packages */
|
/* check if target is offered in branch and get arch_packages */
|
||||||
|
@ -1121,7 +1123,8 @@ static struct branch *select_branch(char *name, char *select_version)
|
||||||
name = version;
|
name = version;
|
||||||
|
|
||||||
list_for_each_entry(br, &branches, list) {
|
list_for_each_entry(br, &branches, list) {
|
||||||
if (strcmp(br->name, name))
|
/* if branch name doesn't match version *prefix*, skip */
|
||||||
|
if (strncmp(br->name, name, strlen(br->name)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (select_version) {
|
if (select_version) {
|
||||||
|
@ -1454,7 +1457,7 @@ int main(int args, char *argv[]) {
|
||||||
|
|
||||||
if (!force && (upg_check & PKG_DOWNGRADE)) {
|
if (!force && (upg_check & PKG_DOWNGRADE)) {
|
||||||
fprintf(stderr, "Refusing to downgrade. Use '-f' to force.\n");
|
fprintf(stderr, "Refusing to downgrade. Use '-f' to force.\n");
|
||||||
rc=-EBADSLT;
|
rc=-ENOTRECOVERABLE;
|
||||||
goto freebranches;
|
goto freebranches;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue