~ubuntu-branches/ubuntu/maverick/apt/maverick-proposed

« back to all changes in this revision

Viewing changes to apt-pkg/depcache.cc

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt, Programs translations, Manpages translations, David Kalnischkies
  • Date: 2010-09-03 17:05:53 UTC
  • Revision ID: james.westby@ubuntu.com-20100903170553-n0z80ga1o5a6qzga
Tags: 0.8.0ubuntu3
* merged fixes from the debian-sid bzr branch:

[ Programs translations ]
* Simplified Chinese (Aron Xu). Closes: #594458
* Bulgarian (Damyan Ivanov). Closes: #594627
* Portuguese (Miguel Figueiredo). Closes: #594668
* Korean (Changwoo Ryu). Closes: #594809

[ Manpages translations ]
* Portuguese (Américo Monteiro)

[ David Kalnischkies ]
* cmdline/apt-cache.cc:
  - remove useless GetInitialize method
* cmdline/apt-get.cc:
  - remove direct calls of ReadMainList and use the wrapper instead
    to protect us from useless re-reads and two-times notice display
  - remove death code by removing unused GetInitialize
* apt-pkg/depcache.cc:
  - now that apt-get purge works on 'rc' packages let the MarkDelete
    pass this purge forward to the non-pseudo package for pseudos
* apt-pkg/contrib/fileutl.cc:
  - apply SilentlyIgnore also on files without an extension
* apt-pkg/contrib/configuration.cc:
  - fix autoremove by using correct config-option name and
    don't make faulty assumptions in error handling (Closes: #594689)
* apt-pkg/versionmatch.cc:
  - let the pin origin actually work as advertised in the manpage
    which means "" are optional and pinning a local archive does
    work - even if it is a non-flat archive (Closes: #594435)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1149
1149
      return;
1150
1150
 
1151
1151
   if (DebugMarker == true)
1152
 
      std::clog << OutputInDepth(Depth) << "MarkDelete " << Pkg << " FU=" << FromUser << std::endl;
 
1152
      std::clog << OutputInDepth(Depth) << (rPurge ? "MarkPurge " : "MarkDelete ") << Pkg << " FU=" << FromUser << std::endl;
1153
1153
 
1154
1154
   RemoveSizes(Pkg);
1155
1155
   RemoveStates(Pkg);
1167
1167
   // if we remove the pseudo package, we also need to remove the "real"
1168
1168
   if (Pkg->CurrentVer != 0 && Pkg.CurrentVer().Pseudo() == true)
1169
1169
      MarkDelete(Pkg.Group().FindPkg("all"), rPurge, Depth+1, FromUser);
 
1170
   else if (rPurge == true && Pkg->CurrentVer == 0 &&
 
1171
            Pkg->CurrentState != pkgCache::State::NotInstalled &&
 
1172
            strcmp(Pkg.Arch(), "all") != 0)
 
1173
   {
 
1174
      PkgIterator const allPkg = Pkg.Group().FindPkg("all");
 
1175
      if (allPkg.end() == false && allPkg->CurrentVer == 0 &&
 
1176
          allPkg->CurrentState != pkgCache::State::NotInstalled)
 
1177
         MarkDelete(allPkg, rPurge, Depth+1, FromUser);
 
1178
   }
1170
1179
}
1171
1180
                                                                        /*}}}*/
1172
1181
// DepCache::IsDeleteOk - check if it is ok to remove this package      /*{{{*/