Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
PackageKit.24715
PackageKit-zypp-locked-packages.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PackageKit-zypp-locked-packages.patch of Package PackageKit.24715
Index: PackageKit-1.2.5/backends/zypp/pk-backend-zypp.cpp =================================================================== --- PackageKit-1.2.5.orig/backends/zypp/pk-backend-zypp.cpp +++ PackageKit-1.2.5/backends/zypp/pk-backend-zypp.cpp @@ -1239,13 +1239,19 @@ zypp_get_package_updates (string repo, s resolver->doUpdate (); } - for (; it != e; ++it) - if (it->status().isToBeInstalled()) { + for (; it != e; ++it) { + if (it->status().isLocked()) { + // We pretend locked packages are not upgradable at all since + // we can't represent the concept of holds in PackageKit. + // https://github.com/PackageKit/PackageKit/issues/325 + continue; + } else if (it->status().isToBeInstalled()) { ui::Selectable::constPtr s = ui::Selectable::get((*it)->kind(), (*it)->name()); if (s->hasInstalledObj()) pks.insert(*it); } + } if (is_tumbleweed ()) { resolver->setUpgradeMode (FALSE);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor