Re: does aptitude really need to lock the status database when downloading?
On Fri, Feb 4, 2011 at 12:47 PM, Fernando Lemos <email@example.com> wrote:
>> This is possible, however, it is an extra busy work for a user. In any
>> case, I think that holding a lock only for downloading is an overkill
>> and this can be relaxed.
> As far as I can tell (and please correct me if I'm wrong), when you
> do, say, an "apt-get upgrade", apt prepares an upgrade "plan" that
> uses a given set of packages. If apt wouldn't lock and parallel to
> that you do an "apt-get install", for example, the original "plan"
> might not be valid anymore (e.g., new "Breaks" or "Conflicts" were
> introduced). So a new plan would have to be created, the user would
> have to be asked for confirmation again. Doesn't sound that great.
That's the choice of the user.
Probably most of the time a change of plan wouldn't be needed.