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_API_VERSION "20120614-1"
|
||||
#define XBPS_API_VERSION "20120614-2"
|
||||
#define XBPS_VERSION "0.16"
|
||||
|
||||
/**
|
||||
|
@ -157,11 +157,16 @@ pkgdep_end(prop_array_t sorted)
|
||||
/* do not add duplicates due to vpkgs */
|
||||
d = xbps_find_pkg_in_array_by_name(sorted,
|
||||
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) {
|
||||
prop_array_add(sorted, pd->d);
|
||||
pkgdep_release(pd);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
prop_dictionary_get_cstring_nocopy(d,
|
||||
"transaction", &trans);
|
||||
if (strcmp(trans, pd->trans) == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user