xbps_alternatives_register: fix test case "more_entries_update".
Even if the alternatives group is already registered, we need to create the symlinks from current pkg dictionary (repo). Signed-off-by: Juan RP <xtraeme@gmail.com>
This commit is contained in:
parent
d021698365
commit
d189921818
@ -472,7 +472,14 @@ xbps_alternatives_register(struct xbps_handle *xhp, xbps_dictionary_t pkg_repod)
|
|||||||
array = xbps_array_create();
|
array = xbps_array_create();
|
||||||
} else {
|
} else {
|
||||||
/* already registered */
|
/* already registered */
|
||||||
if (xbps_match_string_in_array(array, pkgname))
|
if (xbps_match_string_in_array(array, pkgname)) {
|
||||||
|
/* apply alternatives for this group */
|
||||||
|
rv = create_symlinks(xhp,
|
||||||
|
xbps_dictionary_get(pkg_alternatives, keyname),
|
||||||
|
keyname);
|
||||||
|
if (rv != 0)
|
||||||
|
break;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -485,6 +492,7 @@ xbps_alternatives_register(struct xbps_handle *xhp, xbps_dictionary_t pkg_repod)
|
|||||||
rv = create_symlinks(xhp,
|
rv = create_symlinks(xhp,
|
||||||
xbps_dictionary_get(pkg_alternatives, keyname),
|
xbps_dictionary_get(pkg_alternatives, keyname),
|
||||||
keyname);
|
keyname);
|
||||||
|
if (alloc)
|
||||||
xbps_object_release(array);
|
xbps_object_release(array);
|
||||||
if (rv != 0)
|
if (rv != 0)
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user