[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 296/331] Fix installed size not working for uninstalled packages
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 296/331] Fix installed size not working for uninstalled packages
- Date: Wed, 4 May 2016 14:23:24 +0000 (UTC)
commit d7e785e8414e1148658af44e56f0ea35972a96fa
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Apr 25 17:04:27 2016 +0200
Fix installed size not working for uninstalled packages
src/plugins/gs-plugin-apt.cc | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/gs-plugin-apt.cc b/src/plugins/gs-plugin-apt.cc
index 751ff4f..97c96e4 100644
--- a/src/plugins/gs-plugin-apt.cc
+++ b/src/plugins/gs-plugin-apt.cc
@@ -378,9 +378,10 @@ look_at_pkg (const pkgCache::PkgIterator &P,
pkgTagFile TagF (&PkgF);
- if (TagF.Jump (Tags, current.FileList ()->Offset) == false)
- return TRUE;
-
+ if (TagF.Jump (Tags, current.FileList ()->Offset) == false) {
+ if (TagF.Jump (Tags, current.FileList ()->Offset) == false)
+ return TRUE;
+ }
if (Tags.FindI ("Installed-Size") > 0)
info->installed_size = Tags.FindI ("Installed-Size")*1024;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]