[packagekit] [PATCH 2/6] Patches should be counted in resolve operations
Zhang Qiang
qiang.z.zhang at intel.com
Tue Sep 7 01:57:22 PDT 2010
With out this patch, 'pkcon update' can not update patches.
Related MeeGo bug: http://bugs.meego.com/show_bug.cgi?id=2059
---
backends/zypp/pk-backend-zypp.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/backends/zypp/pk-backend-zypp.cpp b/backends/zypp/pk-backend-zypp.cpp
index 7f9550c..38ecf33 100644
--- a/backends/zypp/pk-backend-zypp.cpp
+++ b/backends/zypp/pk-backend-zypp.cpp
@@ -1234,6 +1234,11 @@ backend_resolve_thread (PkBackend *backend)
delete (src);
}
+ std::vector<zypp::sat::Solvable> *v2;
+ v2 = zypp_get_packages_by_name (backend, package_ids[i], zypp::ResKind::patch, TRUE);
+ v->insert (v->end (), v2->begin (), v2->end ());
+ delete (v2);
+
zypp::sat::Solvable newest;
std::vector<zypp::sat::Solvable> pkgs;
--
1.7.1.1
More information about the PackageKit
mailing list