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

Bug#219900: Wrong Version list of Recommends in apt-get.cc



Package: apt
Version: 0.5.14
Severity: minor
File: /usr/bin/apt-get
Tags: patch

Hello,

When looking in source I've found one trivial problem. The string list passed to ShowList for Recommends is wrong.

Bellow a patch to solve this.

Index: cmdline/apt-get.cc
===================================================================
RCS file: /cvs/deity/apt/cmdline/apt-get.cc,v
retrieving revision 1.144
diff -u -r1.144 apt-get.cc
--- cmdline/apt-get.cc  29 Oct 2003 17:56:31 -0000      1.144
+++ cmdline/apt-get.cc  10 Nov 2003 02:22:38 -0000
@@ -1588,7 +1588,7 @@
                       if (int(RecommendsList.find(target)) > -1)
                         break;
                       RecommendsList += target;
-                      SuggestsVersions += string(Cache[Start.TargetPkg()].CandVersion) + "\n";
+                      RecommendsVersions += string(Cache[Start.TargetPkg()].CandVersion) + "\n";
                     }
              if (Start == End)
                break;

Please apply.



-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux retteb.casa 2.6.0-test9-bk14 #1 Sun Nov 9 14:02:50 BRST 2003 i686
Locale: LANG=pt_BR, LC_CTYPE=pt_BR

Versions of packages apt depends on:
ii  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.3.2-3    GCC support library
ii  libstdc++5                  1:3.3.2-3    The GNU Standard C++ Library v3

-- no debconf information




Reply to: