diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-03-20 16:58:10 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-03-20 16:58:10 +0000 |
commit | edf5a3bbff958814e29df78f755390cfa7e2db40 (patch) | |
tree | 7097073fb4882b9227e45187f21d5d0149299e38 /urpm.pm | |
parent | 9578db97227ea459ca5d033f08f71562ed303f4c (diff) | |
download | urpmi-edf5a3bbff958814e29df78f755390cfa7e2db40.tar urpmi-edf5a3bbff958814e29df78f755390cfa7e2db40.tar.gz urpmi-edf5a3bbff958814e29df78f755390cfa7e2db40.tar.bz2 urpmi-edf5a3bbff958814e29df78f755390cfa7e2db40.tar.xz urpmi-edf5a3bbff958814e29df78f755390cfa7e2db40.zip |
Lock the urpmi db when adding a new media (previously it was locked only on update)
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -686,6 +686,7 @@ sub add_medium { #- make sure configuration has been read. $urpm->{media} or $urpm->read_config; + $options{nolock} or $urpm->exlock_urpmi_db; #- if a medium with that name has already been found, we have to exit now my $medium; @@ -755,6 +756,7 @@ sub add_medium { } } + $options{nolock} or $urpm->unlock_urpmi_db; $name; } |