[CentOS-devel] yum update behavior plugin

Sun Aug 13 10:51:24 UTC 2006
Karanbir Singh <mail-lists at karan.org>

Charlie Brady wrote:
>> Well, plugin to remove all packages but yum, if yum is within updated 
>> packages, is easy to write. But plugin can only stop yum execution and 
>> I can't see way to run yum again after yum update by itself.
> 
> I don't see why yum couldn't update yum, then exec the new yum program, 
> listing the remaining packages as install arguments. You'd need to 
> unlock the lock file before calling execve.

no! yum, on re-entry, needs to re-parse the metadata - its possible 
remote end metadata has changed for the new yum as well.


-- 
Karanbir Singh : http://www.karan.org/ : 2522219 at icq