-Add the --select-higher-version option
+Add the --prefer-arch-to-version option
If there were more than one candidate which had the same pkg name in the
candidate list, for example, the same pkg with different versions, then
it would use the last one which was the highest version one in the past,
-but it will use the higher arch priority one now.
-
-Add the "--select-higher-version" option to let it use the higher
-version package when enabled. the default is no.
+but it will use the higher arch priority when this option is specified.
Upstream-Status: Pending
int force_removal_of_essential_packages;
int force_postinstall;
int force_remove;
-+ int select_higher_version;
++ int prefer_arch_to_version;
int check_signature;
int nodeps; /* do not follow dependencies */
char *offline_root;
+ break;
+ }
+ /* Respect to the arch priorities when given alternatives */
-+ if (good_pkg_by_name && !conf->select_higher_version) {
++ if (good_pkg_by_name && conf->prefer_arch_to_version) {
+ if (matching->arch_priority >= good_pkg_by_name->arch_priority) {
+ good_pkg_by_name = matching;
+ opkg_msg(DEBUG, "%s %s wins by priority.\n",
ARGS_OPT_FORCE_SPACE,
ARGS_OPT_FORCE_POSTINSTALL,
ARGS_OPT_FORCE_REMOVE,
-+ ARGS_OPT_SELECT_HIGHER_VERSION,
++ ARGS_OPT_PREFER_ARCH_TO_VERSION,
ARGS_OPT_ADD_ARCH,
ARGS_OPT_ADD_DEST,
ARGS_OPT_NOACTION,
{"force_postinstall", 0, 0, ARGS_OPT_FORCE_POSTINSTALL},
{"force-remove", 0, 0, ARGS_OPT_FORCE_REMOVE},
{"force_remove", 0, 0, ARGS_OPT_FORCE_REMOVE},
-+ {"select-higher-version", 0, 0, ARGS_OPT_SELECT_HIGHER_VERSION},
-+ {"select_higher_version", 0, 0, ARGS_OPT_SELECT_HIGHER_VERSION},
++ {"prefer-arch-to-version", 0, 0, ARGS_OPT_PREFER_ARCH_TO_VERSION},
++ {"prefer-arch-to-version", 0, 0, ARGS_OPT_PREFER_ARCH_TO_VERSION},
{"noaction", 0, 0, ARGS_OPT_NOACTION},
{"download-only", 0, 0, ARGS_OPT_DOWNLOAD_ONLY},
{"nodeps", 0, 0, ARGS_OPT_NODEPS},
case ARGS_OPT_FORCE_REMOVE:
conf->force_remove = 1;
break;
-+ case ARGS_OPT_SELECT_HIGHER_VERSION:
-+ conf->select_higher_version = 1;
++ case ARGS_OPT_PREFER_ARCH_TO_VERSION:
++ conf->prefer_arch_to_version = 1;
+ break;
case ARGS_OPT_NODEPS:
conf->nodeps = 1;
printf("\t--offline-root <dir> offline installation of packages.\n");
printf("\t--add-arch <arch>:<prio> Register architecture with given priority\n");
printf("\t--add-dest <name>:<path> Register destination with given path\n");
-+ printf("\t--select-higher-version\t Use the higher version package rather\n");
-+ printf("\t than the higher arch priority one if more\n");
++ printf("\t--prefer-arch-to-version\t Use the architecture priority package rather\n");
++ printf("\t than the higher version one if more\n");
+ printf("\t than one candidate is found.\n");
printf("\nForce Options:\n");