diff -urN apt-0.5.15cnc6.orig/cmdline/apt-shell.cc apt-0.5.15cnc6/cmdline/apt-shell.cc --- apt-0.5.15cnc6.orig/cmdline/apt-shell.cc 2005-06-10 16:20:42 +0400 +++ apt-0.5.15cnc6/cmdline/apt-shell.cc 2005-06-10 16:25:44 +0400 @@ -147,8 +147,10 @@ { if (Guarded) { delete *Cache; + _error->PushState(); *Cache = new CacheFile; (*Cache)->Open(); + _error->PopState(); if ((*Cache)->CheckDeps(true) == false) { c1out << _("There are broken packages. ") << _("Run `check' to see them.") << endl; @@ -4058,7 +4060,9 @@ _error->Error(_("You have no permissions for that")); return false; } - return InstallPackages(*GCache,false); + int err = InstallPackages(*GCache,false); + _config->Set("APT::Get::Fix-Broken",false); + return err; } bool DoStatus(CommandLine &CmdL)