]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/pkgcache.cc
Remove and Unpack operations should not be ignored for pseudo packages -
[apt.git] / apt-pkg / pkgcache.cc
index 29c27b58eb1497c3a9a01ad4bb11fce5742bb458..24d9e032994c3a40230ad6a5c8e84793cd4bf3e0 100644 (file)
@@ -445,6 +445,18 @@ operator<<(ostream& out, pkgCache::PkgIterator Pkg)
    return out;
 }
                                                                        /*}}}*/
+// PkgIterator::FullName - Returns Name and (maybe) Architecture       /*{{{*/
+// ---------------------------------------------------------------------
+/* Returns a name:arch string */
+std::string pkgCache::PkgIterator::FullName(bool const &Pretty) const
+{
+   string fullname = Name();
+   if (Pretty == false ||
+       (strcmp(Arch(), "all") != 0 && _config->Find("APT::Architecture") != Arch()))
+      return fullname.append(":").append(Arch());
+   return fullname;
+}
+                                                                       /*}}}*/
 // DepIterator::IsCritical - Returns true if the dep is important      /*{{{*/
 // ---------------------------------------------------------------------
 /* Currently critical deps are defined as depends, predepends and