Shawn Walker wrote:
> Brock Pytlik wrote:
>> Shawn Walker wrote:
>>> Tom Mueller wrote:
>>>  
>>>> Shawn Walker wrote:
>>>>   
>>>>> One concern I have is what happens if pkg(1) enables/disables an 
>>>>> authority while the packagemanager is running.
>>>>>
>>>>> What happens then?
>>>>>       
>>>> The same thing that happens if you run "pkg unset-authority" while 
>>>> packagemanager is running. The packages are removed from the 
>>>> catalog cache on disk.  However, since packagemanager already has 
>>>> that information cached, it will still be able to install packages, 
>>>> etc. from the authority that was disabled.
>>>>     
>>>
>>> So, in other words, this is highly dependent on the client.  I'm 
>>> somewhat uncomfortable with the possible race conditions here, but 
>>> for now, assuming this doesn't cause the packagemanager to 
>>> traceback, I think we'll be alright.
>>>
>>>   
>> I think for the time being running pkg from the command line while 
>> packagemanager is the same as (for example) doing to pkg installs at 
>> once: Don't Do That. This seems like about the most innocuous 
>> interaction between the two I could imagine seeing. Until we solve 
>> this problem at a much larger scale, I don't think we should worry 
>> about it in this context.
>
> I agree, but users aren't going to see it that way.  If we permit them 
> to do it, they will see no problem in doing so.
>
> I also don't see how we can really prevent it given updatemanager, etc.
>
At some point we're going to have lock files to prevent the multiple 
installs I believe. We can also use time stamps and other methods to 
ensure information is refreshed as appropriate. But, those all involve a 
fair bit of new code to be written. The point I was trying to make was 
a) we already have this problem in spades so I don't think it's a 
reasonable issue to bring up in this context b) we can't solve this 
problem locally, we need a proper design for this and that's a chunk of 
work itself c) the interactions observed in this patch seem about as 
benign as I could imagine.

Brock
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to