[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#370381: Looks like apt does the right thing



reassign 370381 aptitude 0.4.11.10-1
thanks

I was looking through source code, hoping to come up with a fix for
this and it looks like apt is locking things correctly. I haven't
figured out my way around aptitude yet, but aptitude should
lock _config->FindDir("Dir::Cache::Archives") + "lock" before
installation, as we can see in apt's cmdline/apt-get.c DoClean()
function:

   FileFd Lock;
   if (_config->FindB("Debug::NoLocking",false) == false)
   {
      Lock.Fd(GetLock(_config->FindDir("Dir::Cache::Archives") + "lock"));
      if (_error->PendingError() == true)
         return _error->Error(_("Unable to lock the download directory"));
   }


-- 
Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu/~kbloom1/

Attachment: signature.asc
Description: Digital signature


Reply to: