View | Details | Raw Unified | Return to bug 4707
Collapse All | Expand All

(-)apt-0.5.15cnc6.orig/cmdline/apt-shell.cc (-1 / +5 lines)
Lines 147-154 Link Here
147
   {
147
   {
148
      if (Guarded) {
148
      if (Guarded) {
149
	 delete *Cache;
149
	 delete *Cache;
150
	 _error->PushState();
150
	 *Cache = new CacheFile;
151
	 *Cache = new CacheFile;
151
	 (*Cache)->Open();
152
	 (*Cache)->Open();
153
	 _error->PopState();
152
	 if ((*Cache)->CheckDeps(true) == false) {
154
	 if ((*Cache)->CheckDeps(true) == false) {
153
	    c1out << _("There are broken packages. ")
155
	    c1out << _("There are broken packages. ")
154
		  << _("Run `check' to see them.") << endl;
156
		  << _("Run `check' to see them.") << endl;
Lines 4058-4064 Link Here
4058
      _error->Error(_("You have no permissions for that"));
4060
      _error->Error(_("You have no permissions for that"));
4059
      return false;
4061
      return false;
4060
   }
4062
   }
4061
   return InstallPackages(*GCache,false);
4063
   int err = InstallPackages(*GCache,false);
4064
   _config->Set("APT::Get::Fix-Broken",false);
4065
   return err;
4062
}
4066
}
4063
4067
4064
bool DoStatus(CommandLine &CmdL)
4068
bool DoStatus(CommandLine &CmdL)

Return to bug 4707