Vincent Danen a �crit :
>
> I've written a perl script called rpmcheck which will compare your
> locally installed rpms to a local mirror directory (or nfs). It
> doesn't check over FTP (yet), so it's not useful to everyone, but some
> people may appreciate the script. It can tell you what rpms need to
> be upgraded to the current version in the mirror, or what new rpms
> exist that you do not have installed. It prompts you to
> freshen/install depending on the mode you choose.
Nice. But : when I freshen a package, the scripts had not finish yet,
and I get the
prompt back, so you end up with a concurrency access to RPM database,
like this :
U MandrakeUpdate VER 7.1-26mdk -> 7.1-27mdk
Freshen MandrakeUpdate (yes/NO)? yes
MandrakeUpdate
##################################################
U MySQL VER 3.23.22-2mdk -> 3.23.23-1mdk
Freshen MySQL (yes/NO)? yes
cannot get exclusive lock on database
error: cannot open /var/lib/rpm/packages.rpm
=> because MandrakeUpdate install was not finished (checked with a quick
'ps ax')
So, in that case, I have to restart the script ...