[Reproducible-commits] [dpkg] 71/105: dselect: Remove intermediate pkgbin info variable

Niko Tyni ntyni at moszumanska.debian.org
Mon May 2 13:49:54 UTC 2016


This is an automated email from the git hooks/post-receive script.

ntyni pushed a commit to branch ntyni/reproducible_builds
in repository dpkg.

commit 6dcc38a354432f9d4d4f24b6ccc8c4a29472e1e4
Author: Guillem Jover <guillem at debian.org>
Date:   Mon Apr 25 00:05:32 2016 +0200

    dselect: Remove intermediate pkgbin info variable
---
 dselect/pkgtop.cc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dselect/pkgtop.cc b/dselect/pkgtop.cc
index 39893f5..0da1f10 100644
--- a/dselect/pkgtop.cc
+++ b/dselect/pkgtop.cc
@@ -140,7 +140,6 @@ void packagelist::redraw1itemsel(int index, int selected) {
   int i, indent, j;
   const char *p;
   const struct pkginfo *pkg= table[index]->pkg;
-  const struct pkgbin *info = &pkg->available;
   int screenline = index - topofscreen;
 
   wattrset(listpad, part_attr[selected ? listsel : list]);
@@ -238,8 +237,8 @@ void packagelist::redraw1itemsel(int index, int selected) {
     }
 
     i = col_description.width;
-    p= info->description ? info->description :
-       pkg->installed.description ? pkg->installed.description : "";
+    p = pkg->available.description ? pkg->available.description :
+        pkg->installed.description ? pkg->installed.description : "";
     while (i>0 && *p && *p != '\n') { waddnstr(listpad,p,1); i--; p++; }
   } else {
     const char *section= pkg->section;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list