]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-cache.cc
Various bug fixes
[apt.git] / cmdline / apt-cache.cc
index 6792b576794d153a5c48d1bec955319e723a3846..a11594f2179948cdf68add1880f0a07fb4249524 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-cache.cc,v 1.49 2001/05/27 04:46:43 jgg Exp $
+// $Id: apt-cache.cc,v 1.51 2001/06/10 02:03:33 jgg Exp $
 /* ######################################################################
    
    apt-cache - Manages the cache files
@@ -188,7 +188,7 @@ bool DumpPackage(CommandLine &CmdL)
       {
         cout << "  " << D.ParentPkg().Name() << ',' << D.TargetPkg().Name();
         if (D->Version != 0)
-           cout << ' ' << D.TargetVer() << endl;
+           cout << ' ' << DeNull(D.TargetVer()) << endl;
         else
            cout << endl;
       }
@@ -198,7 +198,7 @@ bool DumpPackage(CommandLine &CmdL)
       {
         cout << Cur.VerStr() << " - ";
         for (pkgCache::DepIterator Dep = Cur.DependsList(); Dep.end() != true; Dep++)
-           cout << Dep.TargetPkg().Name() << " (" << (int)Dep->CompareOp << " " << Dep.TargetVer() << ") ";
+           cout << Dep.TargetPkg().Name() << " (" << (int)Dep->CompareOp << " " << DeNull(Dep.TargetVer()) << ") ";
         cout << endl;
       }      
 
@@ -475,7 +475,7 @@ bool DumpAvail(CommandLine &Cmd)
         if ((File->Flags & pkgCache::Flag::NotSource) == pkgCache::Flag::NotSource)
         {
            pkgTagSection Tags;
-           TFRewriteData RW[] = {{"Status",0},{}};
+           TFRewriteData RW[] = {{"Status",0},{"Config-Version",0},{}};
            const char *Zero = 0;
            if (Tags.Scan(Buffer+Jitter,VF.Size+1) == false ||
                TFRewrite(stdout,Tags,&Zero,RW) == false)