the_lost = NULL;
/* foreach dependency */
- for (; compound_depend && compound_depend->type; compound_depend++) {
+ for (i = 0; compound_depend && compound_depend->type; compound_depend++, i++) {
depend_t **possible_satisfiers =
compound_depend->possibilities;;
found = 0;
int i;
char *arch1, *arch2;
pkg_t **pkgs = vec->pkgs;
- arch1 = pkg_get_string(pkg, PKG_ARCHITECTURE);
+ arch1 = pkg_get_architecture(pkg);
for (i = 0; i < vec->len; i++) {
- arch2 = pkg_get_string(*(pkgs + i), PKG_ARCHITECTURE);
+ arch2 = pkg_get_architecture(*(pkgs + i));
if ((strcmp(pkg->name, (*(pkgs + i))->name) == 0)
&& (pkg_compare_versions(pkg, *(pkgs + i)) == 0)