|| pkg.parsed_cap.detail().hasArch()
|| !_opts.from_repos.empty()
|| !pkg.repo_alias.empty();
+
// check vendor (since PoolItemBest does not do it)
- bool changes_vendor = instobj->vendor() != (*sit)->vendor();
+ bool changes_vendor = ! VendorAttr::instance().equivalent(
+ instobj->vendor(), (*sit)->vendor());
PoolItem best;
if (userconstraints)
}
// update candidate has different vendor
- if (highest->vendor() != installed->vendor())
+ if (!VendorAttr::instance().equivalent(highest->vendor(), installed->vendor()))
{
addFeedback(Feedback::UPD_CANDIDATE_CHANGES_VENDOR, pkg, selected, installed);
DBG << "Newer object with different vendor exists: " << highest
toupgrade[res->kind()].insert(rp);
if (res->arch() != (*rmit)->arch())
tochangearch[res->kind()].insert(rp);
- if (res->vendor() != (*rmit)->vendor())
+ if (!VendorAttr::instance().equivalent(res->vendor(), (*rmit)->vendor()))
tochangevendor[res->kind()].insert(rp);
}
// reinstall
tochangearch[res->kind()].insert(rp);
else
toreinstall[res->kind()].insert(rp);
- if (res->vendor() != (*rmit)->vendor())
+ if (!VendorAttr::instance().equivalent(res->vendor(), (*rmit)->vendor()))
tochangevendor[res->kind()].insert(rp);
}
// downgrade
todowngrade[res->kind()].insert(rp);
if (res->arch() != (*rmit)->arch())
tochangearch[res->kind()].insert(rp);
- if (res->vendor() != (*rmit)->vendor())
+ if (!VendorAttr::instance().equivalent(res->vendor(), (*rmit)->vendor()))
tochangevendor[res->kind()].insert(rp);
}
}
if (_viewop & SHOW_VENDOR)
{
- if (resit->first && resit->first->vendor() != resit->second->vendor())
- tr << resit->first->vendor() + " -> " +
- resit->second->vendor();
+ if (resit->first && ! VendorAttr::instance().equivalent(resit->first->vendor(), resit->second->vendor()))
+ tr << resit->first->vendor() + " -> " + resit->second->vendor();
else
tr << resit->second->vendor();
}