]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/pkgcache.cc
deprecate the Section member from package struct
[apt.git] / apt-pkg / pkgcache.cc
index 58a63459fa1e9abdbdef70bb7d584f16ab42c0c7..d7c9656b951ecb6e77543e0f1460259d37dcd831 100644 (file)
@@ -524,7 +524,10 @@ operator<<(std::ostream& out, pkgCache::PkgIterator Pkg)
       out << " -> " << candidate;
    if ( newest != "none" && candidate != newest)
       out << " | " << newest;
-   out << " > ( " << string(Pkg.Section()==0?"none":Pkg.Section()) << " )";
+   if (Pkg->VersionList == 0)
+      out << " > ( none )";
+   else
+      out << " > ( " << string(Pkg.VersionList().Section()==0?"unknown":Pkg.VersionList().Section()) << " )";
    return out;
 }
                                                                        /*}}}*/