]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-show.cc
redirect which stderr to /dev/null for consistency
[apt.git] / apt-private / private-show.cc
index aaa4268c628da8a7bdfa31b2d63a05fac30cd416..c2517e1301943dd1ccb82af702a95829cc1961c8 100644 (file)
@@ -219,6 +219,7 @@ static bool DisplayRecordV2(pkgCacheFile &CacheFile, pkgCache::VerIterator const
    RW.push_back(pkgTagSection::Tag::Remove("Description"));
    RW.push_back(pkgTagSection::Tag::Remove("Description-md5"));
    // improve
+   RW.push_back(pkgTagSection::Tag::Rewrite("Package", V.ParentPkg().FullName(true)));
    RW.push_back(pkgTagSection::Tag::Rewrite("Installed-Size", installed_size));
    RW.push_back(pkgTagSection::Tag::Remove("Size"));
    RW.push_back(pkgTagSection::Tag::Rewrite("Download-Size", package_size));
@@ -396,7 +397,7 @@ bool Policy(CommandLine &CmdL)
            continue;
         }
         // New code
-        for (pkgCache::VerIterator V = I.VersionList(); !V.end(); V++) {
+        for (pkgCache::VerIterator V = I.VersionList(); !V.end(); ++V) {
            auto Prio = Plcy->GetPriority(V, false);
            if (Prio == 0)
               continue;