summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2012-02-15 18:41:56 +0100
committerVincent Untz <vuntz@gnome.org>2012-04-17 11:07:09 +0200
commitdb797cf7e1e4a8adac47b5809476d7ba235fff3d (patch)
treeb87af9ac8278ec1223a05e744576eb973678ff9b
parentd06d7f591dc49a70ededff9e28cac9066796409c (diff)
zypp: Do not set a PACKAGE_NOT_FOUND error when resolving packages
If there's no result when resolving packages, then we just return nothing; we don't need an error. That's how other backends deal with this, as far as I can tell.
-rw-r--r--backends/zypp/pk-backend-zypp.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/backends/zypp/pk-backend-zypp.cpp b/backends/zypp/pk-backend-zypp.cpp
index 27c04ddb..78a195a7 100644
--- a/backends/zypp/pk-backend-zypp.cpp
+++ b/backends/zypp/pk-backend-zypp.cpp
@@ -1370,12 +1370,6 @@ backend_resolve_thread (PkBackend *backend)
}
zypp_emit_filtered_packages_in_list (backend, pkgs);
-
- if (pkgs.size() < 1) {
- return zypp_backend_finished_error (
- backend, PK_ERROR_ENUM_PACKAGE_NOT_FOUND,
- "couldn't find package");
- }
}
pk_backend_finished (backend);