Package: debtree
Version: 1.0.2
Severity: important
Tags: patch

I wanted to visually verify the correctness of my package dependencies,
before commiting the packages to our remote repository. I therefore
created a local repository holding any new packages that had new
dependencies. Unfortunately debtree didn't seem to pick up the new
packages. I guess this problem is not related to having a local
repository, but would be triggered by having multiple repositories
containing different versions of the same packages (like backports).
In effect, the problem is that debtree seems to select the oldest
package.
The following diff, will make debtree base it's magic on the latest
package versions.

diff --git a/debtree b/debtree
index 5abe212..d717472 100755
--- a/debtree
+++ b/debtree
@@ -298,7 +298,7 @@ sub get_apt_pinfo {
                if (exists $$pinfo{CurrentVer}) {
                        return $$pinfo{CurrentVer};
                } elsif (exists $$pinfo{VersionList}) {
-                       return pop(@{ $$pinfo{VersionList} });
+                       return shift(@{ $$pinfo{VersionList} });
                }
        }
 }

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-486
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debtree depends on:
ii  dctrl-tools                   2.13.1     Command-line tools to process Debi
ii  libapt-pkg-perl               0.1.22+b1  Perl interface to libapt-pkg
ii  perl                          5.10.0-19  Larry Wall's Practical Extraction 
ii  ucf                           3.0016     Update Configuration File: preserv

Versions of packages debtree recommends:
ii  graphviz                      2.20.2-3   rich set of graph drawing tools

debtree suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to