From 2df6b9bfd00a4188f442683d823fd8afc06aa289 Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin Date: Mon, 24 Sep 2012 10:06:09 +0800 Subject: [PATCH] zypp: match the patch name to prevent an internal error https://bugs.freedesktop.org/show_bug.cgi?id=55267 --- backends/zypp/pk-backend-zypp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backends/zypp/pk-backend-zypp.cpp b/backends/zypp/pk-backend-zypp.cpp index 0a81390..8bfd6e9 100644 --- a/backends/zypp/pk-backend-zypp.cpp +++ b/backends/zypp/pk-backend-zypp.cpp @@ -1688,10 +1688,13 @@ backend_get_files_thread (PkBackendJob *job, GVariant *params, gpointer user_dat vector v; vector v2; + vector v3; zypp_get_packages_by_name (backend, (const gchar *)id_parts[PK_PACKAGE_ID_NAME], ResKind::package, v); zypp_get_packages_by_name (backend, (const gchar *)id_parts[PK_PACKAGE_ID_NAME], ResKind::srcpackage, v2); + zypp_get_packages_by_name (backend, (const gchar *)id_parts[PK_PACKAGE_ID_NAME], ResKind::patch, v3); v.insert (v.end (), v2.begin (), v2.end ()); + v.insert (v.end (), v3.begin (), v3.end ()); sat::Solvable package; for (vector::iterator it = v.begin (); -- 1.7.10.4