Commit c3a93a4a authored by Timo Teräs's avatar Timo Teräs

fix all applets to return -ENOTSUP if it's unrecognized

The return -1 seems to have been left over from earlier code, and
could have been treated as -EPERM. This helps to fix the other command
line handling that potentially require changing.
parent b0be9f61
......@@ -416,7 +416,7 @@ static int option_parse_applet(void *pctx, struct apk_db_options *dbopts, int op
ctx->subaction_mask = 0xffffffff;
break;
default:
return -1;
return -ENOTSUP;
}
return 0;
}
......
......@@ -220,7 +220,7 @@ static int option_parse_applet(void *pctx, struct apk_db_options *dbopts, int op
ctx->match_providers = 1;
break;
default:
return -1;
return -ENOTSUP;
}
return 0;
......
......@@ -103,7 +103,7 @@ static int option_parse_applet(void *ctx, struct apk_db_options *dbopts, int opt
ictx->show_all = 1;
break;
default:
return -1;
return -ENOTSUP;
}
return 0;
}
......
......@@ -42,7 +42,7 @@ static int option_parse_applet(void *ctx, struct apk_db_options *dbopts, int opt
uctx->solver_flags |= APK_SOLVERF_LATEST;
break;
default:
return -1;
return -ENOTSUP;
}
return 0;
}
......
......@@ -90,7 +90,7 @@ static int option_parse_applet(void *ctx, struct apk_db_options *dbopts, int opt
ictx->all_tags = 1;
break;
default:
return -1;
return -ENOTSUP;
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment