libxbps: also match vpkgs in previous commit.
This commit is contained in:
parent
302b216d8d
commit
506625a716
@ -56,7 +56,7 @@
|
|||||||
*/
|
*/
|
||||||
#define XBPS_PKGINDEX_VERSION "1.5"
|
#define XBPS_PKGINDEX_VERSION "1.5"
|
||||||
|
|
||||||
#define XBPS_API_VERSION "20120614-1"
|
#define XBPS_API_VERSION "20120614-2"
|
||||||
#define XBPS_VERSION "0.16"
|
#define XBPS_VERSION "0.16"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -157,11 +157,16 @@ pkgdep_end(prop_array_t sorted)
|
|||||||
/* do not add duplicates due to vpkgs */
|
/* do not add duplicates due to vpkgs */
|
||||||
d = xbps_find_pkg_in_array_by_name(sorted,
|
d = xbps_find_pkg_in_array_by_name(sorted,
|
||||||
pd->name, NULL);
|
pd->name, NULL);
|
||||||
|
if (d == NULL) {
|
||||||
|
/* find a virtual pkg otherwise */
|
||||||
|
d = xbps_find_virtualpkg_in_array_by_name(
|
||||||
|
sorted, pd->name);
|
||||||
if (d == NULL) {
|
if (d == NULL) {
|
||||||
prop_array_add(sorted, pd->d);
|
prop_array_add(sorted, pd->d);
|
||||||
pkgdep_release(pd);
|
pkgdep_release(pd);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
prop_dictionary_get_cstring_nocopy(d,
|
prop_dictionary_get_cstring_nocopy(d,
|
||||||
"transaction", &trans);
|
"transaction", &trans);
|
||||||
if (strcmp(trans, pd->trans) == 0) {
|
if (strcmp(trans, pd->trans) == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user