Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
PackageKit
0006-zypp-do-not-trigger-invalid-numbers.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0006-zypp-do-not-trigger-invalid-numbers.patch of Package PackageKit
From 75b28d5c9b98946d275368708388ce6c13e05471 Mon Sep 17 00:00:00 2001 From: Stephan Kulow <coolo@suse.de> Date: Sun, 20 Jan 2013 15:32:55 +0100 Subject: [PATCH 8/8] zypp: do not trigger invalid numbers (and revert accident commit outside of zypp backend) --- backends/zypp/zypp-events.h | 1 + src/pk-backend-job.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backends/zypp/zypp-events.h b/backends/zypp/zypp-events.h index 69777ec..623ec77 100644 --- a/backends/zypp/zypp-events.h +++ b/backends/zypp/zypp-events.h @@ -95,6 +95,7 @@ public: if (percentage > 100) { MIL << "libzypp is silly" << std::endl; + return; } _sub_percentage = percentage; diff --git a/src/pk-backend-job.c b/src/pk-backend-job.c index d1d7035..45e992a 100644 --- a/src/pk-backend-job.c +++ b/src/pk-backend-job.c @@ -987,7 +987,7 @@ pk_backend_job_set_item_progress (PkBackendJob *job, /* invalid number? */ if (percentage > 100 && percentage != PK_BACKEND_PERCENTAGE_INVALID) { - g_error ("invalid number %i", percentage); + g_debug ("invalid number %i", percentage); return; } -- 1.8.1.1
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