[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 281/331] Clear old errors from last run



commit 140cf6a56c4df7f5e516af4919d48874ff29802c
Author: William Hua <william hua canonical com>
Date:   Wed Apr 20 07:25:56 2016 -0400

    Clear old errors from last run

 src/plugins/gs-plugin-apt.cc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-apt.cc b/src/plugins/gs-plugin-apt.cc
index ba09cdc..647b99c 100644
--- a/src/plugins/gs-plugin-apt.cc
+++ b/src/plugins/gs-plugin-apt.cc
@@ -428,6 +428,7 @@ load_apt_db (GsPlugin *plugin, GError **error)
        if (plugin->priv->loaded)
                return TRUE;
 
+       _error->Discard();
        cache = cachefile.GetPkgCache();
        list = cachefile.GetSourceList();
        policy = cachefile.GetPolicy();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]