candidate = s->installedObj();
if (s->installedObj() &&
- equalNVRA(*s->installedObj().resolvable(), *candidate.resolvable()) &&
+ identical(s->installedObj(), candidate) &&
!force)
{
// if it is broken install anyway, even if it is installed
bool theoneinstalled; // is the One installed ?
if (!traits::isPseudoInstalled(s.kind()))
theoneinstalled = !s.installedEmpty() &&
- equalNVRA(*s.installedObj().resolvable(), *theone.resolvable());
+ identical(s.installedObj(), theone);
else if (s.kind() == ResKind::patch)
theoneinstalled = theone.isRelevant() && theone.isSatisfied();
else
for_(it, s->availableBegin(), s->availableEnd())
{
- if (equalNVRA(*it->resolvable(), *inst.resolvable()))
+ if (identical(*it, inst))
{
inst_with_repo = *it;
++count_installed_repo;
{
if (notinst_only)
continue;
- row << (equalNVRA(*installed.resolvable(), *pi.resolvable()) ? "i" : "v");
+ row << (identical(installed, pi) ? "i" : "v");
}
else
{
if (installed)
{
- if (equalNVRA(*installed.resolvable(), *pi.resolvable()))
+ if (identical(installed, pi))
{
if (notinst_only)
continue;
if (!theone)
theone = s->installedObj();
- if (equalNVRA(*s->installedObj().resolvable(), *theone.resolvable()))
+ if (identical(s->installedObj(), theone))
{
DBG << "the One (" << theone << ") is installed, skipping." << endl;
zypper.out().info(str::form(
// ----------------------------------------------------------------------------
-bool equalNVRA(const Resolvable & lhs, const Resolvable & rhs)
-{
- if (lhs.name() != rhs.name())
- return false;
- if (lhs.kind() != rhs.kind())
- return false;
- if (lhs.edition() != rhs.edition())
- return false;
- if (lhs.arch() != rhs.arch())
- return false;
- return true;
-}
-
-// ----------------------------------------------------------------------------
-
bool looks_like_url (const string& s)
{
/*
std::string string_patch_status(const zypp::PoolItem & pi);
-bool equalNVRA(const zypp::Resolvable & lhs, const zypp::Resolvable & rhs);
-
/**
* Creates a Url out of \a urls_s. If the url_s looks looks_like_url()
* Url(url_s) is returned. Otherwise if \a url_s represends a valid path to