Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:yfjiang:branches:GNOME:STABLE:41
PackageKit
PackageKit-zypp-locked-packages.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PackageKit-zypp-locked-packages.patch of Package PackageKit
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